Commit 5bf3623
fix(contests): prime correct count cache key in useUserRemixContests
The profile Contests tab primed `getRemixesQueryKey({ pageSize: 0,
isContestEntry: true })`, but `ContestCard` reads from
`useRemixesCount`, which is keyed by `getRemixesCountQueryKey`. The
mismatch meant primed counts were never read — every card fell through
to its own `/tracks/{id}/remixes?limit=0` request, with the badge
showing "0 ENTRIES" until that fetch resolved.
This mirrors the fix already applied to `useAllRemixContests` in
#14271 ("normalize lineup shape"). The companion hook was missed at
the time.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8edc8d6 commit 5bf3623
1 file changed
Lines changed: 5 additions & 13 deletions
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 98 | + | |
| 99 | + | |
108 | 100 | | |
109 | 101 | | |
110 | 102 | | |
| |||
0 commit comments