SolidJSS
SolidJS2y ago
10 replies
cdegrel

LocalStorage Hydration Mismatch

I'm trying to display a component that should display the city name after retrieving it from localstorage, but i get this error
Error: Hydration Mismatch. Unable to find DOM nodes for hydration key

I use @solid-primitives/storage to keep the result of the API call in local storage and a Context to access it anywhere in my application.

Can anyone help me understand what I'm doing wrong?
code.png
code2.png
Was this page helpful?