@tanstack/solid-query 5.59.20 → 5.60.5

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 CHANGED
@@ -495,10 +495,10 @@ function createQueries(queriesOptions, queryClient) {
495
495
  taskQueue = [];
496
496
  });
497
497
  });
498
- let unsubscribe = () => void 0;
498
+ let unsubscribe = noop;
499
499
  solidJs.createComputed((cleanup) => {
500
500
  cleanup?.();
501
- unsubscribe = isRestoring() ? () => void 0 : subscribeToObserver();
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 = () => void 0;
497
+ let unsubscribe = noop;
498
498
  createComputed((cleanup) => {
499
499
  cleanup?.();
500
- unsubscribe = isRestoring() ? () => void 0 : subscribeToObserver();
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 = () => void 0;
489
+ let unsubscribe = noop;
490
490
  solidJs.createComputed((cleanup) => {
491
491
  cleanup?.();
492
- unsubscribe = isRestoring() ? () => void 0 : subscribeToObserver();
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 = () => void 0;
488
+ let unsubscribe = noop;
489
489
  createComputed((cleanup) => {
490
490
  cleanup?.();
491
- unsubscribe = isRestoring() ? () => void 0 : subscribeToObserver();
491
+ unsubscribe = isRestoring() ? noop : subscribeToObserver();
492
492
  return () => queueMicrotask(unsubscribe);
493
493
  });
494
494
  onCleanup(unsubscribe);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-query",
3
- "version": "5.59.20",
3
+ "version": "5.60.5",
4
4
  "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "!src/__tests__"
46
46
  ],
47
47
  "dependencies": {
48
- "@tanstack/query-core": "5.59.20"
48
+ "@tanstack/query-core": "5.60.5"
49
49
  },
50
50
  "devDependencies": {
51
51
  "solid-js": "^1.8.19",
@@ -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: () => void = () => undefined
309
+ let unsubscribe = noop
309
310
  createComputed<() => void>((cleanup) => {
310
311
  cleanup?.()
311
- unsubscribe = isRestoring() ? () => undefined : subscribeToObserver()
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
@@ -10,4 +10,4 @@ export function shouldThrowError<T extends (...args: Array<any>) => boolean>(
10
10
  return !!throwError
11
11
  }
12
12
 
13
- export function noop() {}
13
+ export function noop(): void {}