Skip to content

Commit 4939db6

Browse files
authored
day 10 (#973)
1 parent 912e907 commit 4939db6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ When Svelte emits a warning or error (whether at build time, when the compiler i
7777

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

80-
## Day 10
80+
## Day 10: SvelteKit `init` hooks
8181

82-
Coming soon!
82+
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.
83+
84+
- [docs](https://svelte.dev/docs/kit/hooks#Shared-hooks-init)
8385

8486
## Day 11
8587

0 commit comments

Comments
 (0)