Skip to content

Commit 39d90f1

Browse files
authored
docs: access store value in context example (sveltejs#471)
1 parent dc3bf66 commit 39d90f1

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/02-advanced-svelte/08-context/01-context-api

1 file changed

+1
-1
lines changed

content/tutorial/02-advanced-svelte/08-context/01-context-api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ import { getContext } from 'svelte';
8686

8787
const { count } = getContext('my-context');
8888

89-
$: console.log({ count });
89+
$: console.log({ count: $count });
9090
```

0 commit comments

Comments
 (0)