hydration failed: server html didnt match the client (sveltekit)

hydrationreactssr1 replies · 333 views · started
  1. help!! im new to server-side rendering and this error has me confused:

    Its a SvelteKit project and teh error points at the users theme preference. Locally it sometimes happens, sometimes not. A colleague says its cuz of browser extensions, another says its my code lmao How do i tell which one it is?? Any explanation of how to debug this properly would be really appreciated. im about to throw this thing out the window lol

    40
  2. how is my theme computed: from Date, Math.random, localStorage or a cookie?

    thinking

    1 0 helpful

Reply to this topic

Sign in or create an account to reply.