fix(mobile): contest followers screen blank when limit exceeds 100#14337
Merged
Conversation
The mobile ContestFollowersScreen requested `limit: 200` for the follower list, while the equivalent web modal (`ContestFollowersModal`) uses `limit: 100`. Requesting above that ceiling comes back empty, so the UserList rendered no rows — only the "FOLLOWERS" header. Match the web caller (`limit: 100`) so the screen actually populates when the user taps the followers card. Updates the surrounding comment to record the constraint so future readers do not raise it back. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The mobile Contest Followers screen (the dedicated list opened from the
"FOLLOWERS (N)" card on a remix contest page) was rendering as a blank
white screen under its "FOLLOWERS" header — no rows, no skeletons, no empty
state.
Root cause: the screen requested
useEventFollowers({ eventId, limit: 200 }),while the equivalent web caller (
ContestFollowersModal) useslimit: 100.Above that ceiling the
/events/{eventId}/followersresponse comes backempty, so
userIdsresolved to[],isPendingflipped tofalse, and theshared
UserListrendered nothing.The avatar pile on the contest details tab kept working because it requests
limit: 7viaEventFollowersCard, well under the ceiling.Fix
limit: 100, matching the web modal.readers don't bump it back up.
Test plan
rendering a blank "FOLLOWERS" header
unchanged path)
ContestFollowersModalis unaffected (no changestouched the hook or the web caller)
🤖 Generated with Claude Code