@tanstack/solid-query 5.0.0-beta.18 → 5.0.0-beta.21

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.
@@ -0,0 +1,6 @@
1
+ import { type Accessor, createContext, useContext } from 'solid-js'
2
+
3
+ const IsRestoringContext = createContext<Accessor<boolean>>(() => false)
4
+
5
+ export const useIsRestoring = () => useContext(IsRestoringContext)
6
+ export const IsRestoringProvider = IsRestoringContext.Provider
package/src/utils.ts CHANGED
@@ -1,4 +1,4 @@
1
- export function shouldThrowError<T extends (...args: any[]) => boolean>(
1
+ export function shouldThrowError<T extends (...args: Array<any>) => boolean>(
2
2
  throwError: boolean | T | undefined,
3
3
  params: Parameters<T>,
4
4
  ): boolean {