Elliott Johnson @ell.iott.dev · Nov 25

After way too many rounds of review, `hydratable` is out! This new low-level Svelte API isn’t one you’ll find yourself reaching for often, but it’s extremely useful to libraries. During SSR, function results are serialized alongside your HTML…

36 likes 4 replies

?

Replies

Peter Reeves · Nov 25

LMAO, I was just flicking through the documentation 5 minutes ago and thought: "Huh, how long has that API been there? It looks super useful for what I want do to. Maybe I've just haven't noticed it this entire time..." Did not realize it only came out 7 hours ago 😂

Rodrigo Dias · Nov 25

Hydratable simplifies custom SSR components.

rich harris · Nov 25

at your next perf review, under opportunities for growth i'm putting 'screenshots'

Elliott Johnson · Nov 25

During hydration on the client, the results are pulled from the serialized data synchronously, so you don’t have to do your async work again. If used outside of hydration, `hydratable` just runs its callback. This API will power SvelteKit’s remote functions very soon! svelte.dev/docs/svelte/...