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).
pull/15944/head
Christian Decker 4 months ago committed by GitHub
parent c365634ace
commit ec62449ed4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save