You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/svelte/reactivity.md
+5-7
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: reactivity
3
3
title: Reactivity
4
4
---
5
5
6
-
Svelte uses a compiler to build your code which optimises rendering. By default, variables will run once, unless they are referenced in your markup. To be able to react to changes in options you need to use [stores](https://svelte.dev/tutorial/writable-stores).
6
+
Svelte uses a compiler to build your code which optimises rendering. By default, variables will run once, unless they are referenced in your markup. To be able to react to changes in options you need to use [stores](https://svelte.dev/docs/svelte-store).
7
7
8
8
In the below example, the `refetchInterval` option is set from the variable `intervalMs`, which is edited by the input field. However, as the query is not told it should react to changes in `intervalMs`, `refetchInterval` will not change when the input value changes.
9
9
@@ -30,20 +30,18 @@ To solve this, create a store for the options and use it as input for the query.
30
30
```markdown
31
31
<script>
32
32
import { createQuery } from '@tanstack/svelte-query'
33
+
import type { CreateQueryOptions } from '@tanstack/svelte-query'
0 commit comments