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