Rob Balfré @robertbalfre.dev · Dec 15

@sveltesociety.dev does this mean you can't hydrate a page that uses the $page store? I'm getting "Hydration failed because the initial UI does not match what was rendered on the server" all over my app now. @svelte.dev #svelte #sveltekit

0 likes 2 replies

?

Replies

{🧪} +paoloricciuti.svelte · Dec 15

Do you have a reproduction?

Rob Balfré · Dec 15

Seems you can, the culprit was passing in a Svelte component as a prop. Needs to be a snippet only I guess? ❌ Icon={...} ✅ {#snippet icon()}...{/snippet}