Skip to content

day 10 #973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2024
Merged
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
6 changes: 4 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 @@ -77,9 +77,11 @@ When Svelte emits a warning or error (whether at build time, when the compiler i

- [demo](/playground/8095884c1f5040ea846669b904083e25?version=5.10.0)

## Day 10
## Day 10: SvelteKit `init` hooks

Coming soon!
A lot of you wanted a place to put asynchronous setup work that happens before your SvelteKit app starts up. You can now export an `init` function from `hooks.server.js` and `hooks.client.js` that will be awaited before any other stuff happens.

- [docs](https://svelte.dev/docs/kit/hooks#Shared-hooks-init)

## Day 11

Expand Down
Loading