Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

setIsRestoringContext.md

24 lines470 Bytes

1---
2id: setIsRestoringContext
3title: setIsRestoringContext
4---
5​
6```ts
7function setIsRestoringContext(isRestoring: Box<boolean>): void;
8```
9​
10Defined in: [packages/svelte-query/src/context.ts:68](https://github.com/TanStack/query/blob/main/packages/svelte-query/src/context.ts#L68)
11​
12Sets a `isRestoring` on Svelte's context.
13​
14## Parameters
15​
16### isRestoring
17​
18`Box`\<`boolean`\>
19​
20The box holding whether the cache is being restored, e.g. by a persister.
21​
22## Returns
23​
24`void`