Skip to content

fix(client): browse filter and load more reach the whole category - #4

Merged
Zeikrom251 merged 1 commit into
mainfrom
fix/browse-filter-load-more
Oct 17, 2026
Merged

Zeikrom251 merged 1 commit into
mainfrom
fix/browse-filter-load-more

Conversation

@Zeikrom251

Copy link
Copy Markdown
Owner

Twitch rejects paged category requests (after cursor) from anonymous clients with IntegrityCheckFailed, so "Load more" always failed silently and the filter only ever searched the first 24 streams.

  • Fetch the first 100 streams of three sort orders (most watched, least watched, newest) in parallel and merge them, reaching 130-270 streams per category instead of 24.
  • "Load more" now reveals the loaded list 24 at a time, so it cannot fail, and stays reachable when a filter matches nothing.
  • A filter that could be a Twitch tag is also sent as a server-side freeformTags search over the entire category, and its results join the local matches.
  • Say how many streams Twitch lists when the category holds more.

Twitch rejects paged category requests (`after` cursor) from anonymous
clients with IntegrityCheckFailed, so "Load more" always failed silently
and the filter only ever searched the first 24 streams.

- Fetch the first 100 streams of three sort orders (most watched, least
  watched, newest) in parallel and merge them, reaching 130-270 streams
  per category instead of 24.
- "Load more" now reveals the loaded list 24 at a time, so it cannot
  fail, and stays reachable when a filter matches nothing.
- A filter that could be a Twitch tag is also sent as a server-side
  freeformTags search over the entire category, and its results join
  the local matches.
- Say how many streams Twitch lists when the category holds more.
@Zeikrom251 Zeikrom251 self-assigned this Oct 17, 2026
@vercel

vercel Bot commented Oct 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
emeraldcast Ready Ready Preview Oct 17, 2026 6:32pm UTC

@Zeikrom251
Zeikrom251 merged commit cd00c73 into main Oct 17, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — b5076492 Deployed Oct 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Browsing Modal: filter and "Load more" only work on already-loaded streams

1 participant