Skip to content

Commit ec62449

Browse files
authored
chore: fix docs typo in 02-context.md
Fix imported module path from 'svelte' to './state.svelte.js' to help the reader see where the custom global state object comes from (in the context of the tutorial).
1 parent c365634 commit ec62449

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
@@ -125,7 +125,7 @@ In many cases this is perfectly fine, but there is a risk: if you mutate the sta
125125
```svelte
126126
<!--- file: App.svelte ---->
127127
<script>
128-
import { myGlobalState } from 'svelte';
128+
import { myGlobalState } from './state.svelte.js';
129129
130130
let { data } = $props();
131131

0 commit comments

Comments
 (0)