Open History to see the last commit
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`