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

setIsRestoringContext.md

26 lines543 Bytes

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