Skip to content

Commit 4832351

Browse files
authored
typo setContext should be getContext
1 parent 1ee2ac4 commit 4832351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Context is not inherently reactive. If you need reactive values in context then
8282
<script>
8383
import { setContext } 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)