Skip to content

Commit 5d6586b

Browse files
authored
day 16 (#1029)
* day 16 * missing title
1 parent ad223f3 commit 5d6586b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,18 @@ The new `$inspect.trace(...)` rune gives you detailed information about which st
121121
- [docs](</docs/svelte/$inspect#$inspect.trace()>)
122122
- [demo](/playground/d135c6f00beb4fa391725e59d8061604?version=5.14.0)
123123

124-
## Day 16
124+
## Day 16: `$app/state`
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)