@tanstack/solid-query 5.59.20 → 5.60.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dev.cjs +2 -2
- package/build/dev.js +2 -2
- package/build/index.cjs +2 -2
- package/build/index.js +2 -2
- package/package.json +1 -1
- package/src/createQueries.ts +3 -2
- package/src/utils.ts +1 -1
package/build/dev.cjs
CHANGED
|
@@ -495,10 +495,10 @@ function createQueries(queriesOptions, queryClient) {
|
|
|
495
495
|
taskQueue = [];
|
|
496
496
|
});
|
|
497
497
|
});
|
|
498
|
-
let unsubscribe =
|
|
498
|
+
let unsubscribe = noop;
|
|
499
499
|
solidJs.createComputed((cleanup) => {
|
|
500
500
|
cleanup?.();
|
|
501
|
-
unsubscribe = isRestoring() ?
|
|
501
|
+
unsubscribe = isRestoring() ? noop : subscribeToObserver();
|
|
502
502
|
return () => queueMicrotask(unsubscribe);
|
|
503
503
|
});
|
|
504
504
|
solidJs.onCleanup(unsubscribe);
|
package/build/dev.js
CHANGED
|
@@ -494,10 +494,10 @@ function createQueries(queriesOptions, queryClient) {
|
|
|
494
494
|
taskQueue = [];
|
|
495
495
|
});
|
|
496
496
|
});
|
|
497
|
-
let unsubscribe =
|
|
497
|
+
let unsubscribe = noop;
|
|
498
498
|
createComputed((cleanup) => {
|
|
499
499
|
cleanup?.();
|
|
500
|
-
unsubscribe = isRestoring() ?
|
|
500
|
+
unsubscribe = isRestoring() ? noop : subscribeToObserver();
|
|
501
501
|
return () => queueMicrotask(unsubscribe);
|
|
502
502
|
});
|
|
503
503
|
onCleanup(unsubscribe);
|
package/build/index.cjs
CHANGED
|
@@ -486,10 +486,10 @@ function createQueries(queriesOptions, queryClient) {
|
|
|
486
486
|
taskQueue = [];
|
|
487
487
|
});
|
|
488
488
|
});
|
|
489
|
-
let unsubscribe =
|
|
489
|
+
let unsubscribe = noop;
|
|
490
490
|
solidJs.createComputed((cleanup) => {
|
|
491
491
|
cleanup?.();
|
|
492
|
-
unsubscribe = isRestoring() ?
|
|
492
|
+
unsubscribe = isRestoring() ? noop : subscribeToObserver();
|
|
493
493
|
return () => queueMicrotask(unsubscribe);
|
|
494
494
|
});
|
|
495
495
|
solidJs.onCleanup(unsubscribe);
|
package/build/index.js
CHANGED
|
@@ -485,10 +485,10 @@ function createQueries(queriesOptions, queryClient) {
|
|
|
485
485
|
taskQueue = [];
|
|
486
486
|
});
|
|
487
487
|
});
|
|
488
|
-
let unsubscribe =
|
|
488
|
+
let unsubscribe = noop;
|
|
489
489
|
createComputed((cleanup) => {
|
|
490
490
|
cleanup?.();
|
|
491
|
-
unsubscribe = isRestoring() ?
|
|
491
|
+
unsubscribe = isRestoring() ? noop : subscribeToObserver();
|
|
492
492
|
return () => queueMicrotask(unsubscribe);
|
|
493
493
|
});
|
|
494
494
|
onCleanup(unsubscribe);
|
package/package.json
CHANGED
package/src/createQueries.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
} from 'solid-js'
|
|
14
14
|
import { useQueryClient } from './QueryClientProvider'
|
|
15
15
|
import { useIsRestoring } from './isRestoring'
|
|
16
|
+
import { noop } from './utils'
|
|
16
17
|
import type { CreateQueryResult, SolidQueryOptions } from './types'
|
|
17
18
|
import type { Accessor } from 'solid-js'
|
|
18
19
|
import type { QueryClient } from './QueryClient'
|
|
@@ -305,10 +306,10 @@ export function createQueries<
|
|
|
305
306
|
})
|
|
306
307
|
})
|
|
307
308
|
|
|
308
|
-
let unsubscribe
|
|
309
|
+
let unsubscribe = noop
|
|
309
310
|
createComputed<() => void>((cleanup) => {
|
|
310
311
|
cleanup?.()
|
|
311
|
-
unsubscribe = isRestoring() ?
|
|
312
|
+
unsubscribe = isRestoring() ? noop : subscribeToObserver()
|
|
312
313
|
// cleanup needs to be scheduled after synchronous effects take place
|
|
313
314
|
return () => queueMicrotask(unsubscribe)
|
|
314
315
|
})
|
package/src/utils.ts
CHANGED