Commit a717387
fix(ui): Fix "Missing queryFn" error in useAggregatedQueryKeys
QueryObserver was created without a queryFn to listen for when
fetchQuery resolved. In TanStack Query v5 this throws "Missing queryFn"
whenever the observer evaluates stale data. Fires on every batch of IDs
buffered through useReplayCount so it spams on any issue list page.
Replace the observer with .finally() on the fetchQuery promise to clean
up inFlight markers — simpler and doesn't need the subscription ref
cleanup.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 88ba368 commit a717387
1 file changed
+11
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 91 | | |
102 | 92 | | |
103 | 93 | | |
| |||
148 | 138 | | |
149 | 139 | | |
150 | 140 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
161 | 151 | | |
162 | | - | |
163 | | - | |
164 | 152 | | |
165 | 153 | | |
166 | 154 | | |
| |||
0 commit comments