Skip to content

Commit 3ccc37a

Browse files
committed
day 16
1 parent ad223f3 commit 3ccc37a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

apps/svelte.dev/content/blog/2024-12-01-advent-of-svelte.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,16 @@ The new `$inspect.trace(...)` rune gives you detailed information about which st
123123

124124
## Day 16
125125

126-
Coming soon!
126+
SvelteKit's `$app/stores` module, which gives you a way to access information about (for example) the current page, now has a modern Svelte 5 state-based counterpart: `$app/state`. It exposes all the same information, but using fine-grained state, and without the clunky `$` prefix. `$app/stores` is now deprecated, and will be removed in SvelteKit 3 next year.
127+
128+
You can migrate automatically by running the following command in your SvelteKit app:
129+
130+
```bash
131+
npx sv migrate app-state
132+
```
133+
134+
- [docs](/docs/kit/$app-state)
135+
- [tutorial](/tutorial/kit/page-state)
127136

128137
## Day 17
129138

0 commit comments

Comments
 (0)