We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aebc065 + ec5662f commit 3d46122Copy full SHA for 3d46122
1 file changed
packages/angular-query-experimental/src/inject-queries.ts
@@ -297,14 +297,15 @@ export function injectQueries<
297
const [_optimisticResult, getCombinedResult] = optimisticResultSignal()
298
299
untracked(() => {
300
- const unsubscribe = isRestoring()
301
- ? () => undefined :ngZone.runOutsideAngular(() =>
302
- observer.subscribe(
303
- notifyManager.batchCalls((state) => {
304
- resultFromSubscriberSignal.set(getCombinedResult(state))
305
- }),
306
- ),
307
- )
+ const unsubscribe = isRestoring()
+ ? () => undefined
+ : ngZone.runOutsideAngular(() =>
+ observer.subscribe(
+ notifyManager.batchCalls((state) => {
+ resultFromSubscriberSignal.set(getCombinedResult(state))
+ }),
+ ),
308
+ )
309
310
destroyRef.onDestroy(unsubscribe)
311
})
0 commit comments