MCPcopy Create free account
hub / github.com/TanStack/query / getIsRestoringContext

Function getIsRestoringContext

packages/svelte-query/src/context.ts:53–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 * context is unavailable.
52 */
53export const getIsRestoringContext = (): Box<boolean> => {
54 try {
55 const isRestoring = getContext<Box<boolean> | undefined>(
56 _isRestoringContextKey,
57 )
58 return isRestoring ?? { current: false }
59 } catch (error) {
60 return { current: false }
61 }
62}
63
64/**
65 * Sets a `isRestoring` on Svelte's context.

Callers 2

useIsRestoringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected