docs: fix setContext/getContext typo (#13901)

pull/13917/head
plgingras88 2 weeks ago committed by GitHub
parent 1ee2ac4d05
commit 18e2284e74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -80,9 +80,9 @@ Context is not inherently reactive. If you need reactive values in context then
```svelte
<!--- file: Child.svelte --->
<script>
import { setContext } from 'svelte';
import { getContext } from 'svelte';
const value = setContext('counter');
const value = getContext('counter');
</script>
<p>Count is {value.count}</p>

Loading…
Cancel
Save