Skip to content

Commit 18e2284

Browse files
authored
docs: fix setContext/getContext typo (#13901)
1 parent 1ee2ac4 commit 18e2284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/docs/06-runtime/02-context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ Context is not inherently reactive. If you need reactive values in context then
8080
```svelte
8181
<!--- file: Child.svelte --->
8282
<script>
83-
import { setContext } from 'svelte';
83+
import { getContext } from 'svelte';
8484
85-
const value = setContext('counter');
85+
const value = getContext('counter');
8686
</script>
8787
8888
<p>Count is {value.count}</p>

0 commit comments

Comments
 (0)