Commit f1b3d79
fix(ui): Fix "Missing queryFn" error in useAggregatedQueryKeys (#112488)
`useAggregatedQueryKeys` created a `QueryObserver` without a `queryFn`
just to listen for when `fetchQuery` resolved so it could clean up
inFlight markers. In TanStack Query v5 this throws "Missing queryFn"
Replace the observer with `.finally()` on the promise `fetchQuery`
already returns - simpler and doesn't need the subscription ref cleanup.
fixes JAVASCRIPT-38K4
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8001c2f commit f1b3d79
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