We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee2ac4 commit 18e2284Copy full SHA for 18e2284
documentation/docs/06-runtime/02-context.md
@@ -80,9 +80,9 @@ Context is not inherently reactive. If you need reactive values in context then
80
```svelte
81
<!--- file: Child.svelte --->
82
<script>
83
- import { setContext } from 'svelte';
+ import { getContext } from 'svelte';
84
85
- const value = setContext('counter');
+ const value = getContext('counter');
86
</script>
87
88
<p>Count is {value.count}</p>
0 commit comments