Skip to content
Merged

day 16 #1029

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions apps/svelte.dev/content/blog/2024-12-01-advent-of-svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,18 @@ The new `$inspect.trace(...)` rune gives you detailed information about which st
- [docs](</docs/svelte/$inspect#$inspect.trace()>)
- [demo](/playground/d135c6f00beb4fa391725e59d8061604?version=5.14.0)

## Day 16
## Day 16: `$app/state`

Coming soon!
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.

You can migrate automatically by running the following command in your SvelteKit app:

```bash
npx sv migrate app-state
```

- [docs](/docs/kit/$app-state)
- [tutorial](/tutorial/kit/page-state)

## Day 17

Expand Down
Loading