SolidJSS
SolidJSโ€ข3y agoโ€ข
18 replies
Sem

How to handle hydration on client side?

I'm using localstorage to save my local items. Component renders on server if I press F5 and throws an hydration error and it's logically, because server component doesn't have an elements from client sides and it's handled by isServer.

But main question: how do I handle this hydration error? How can I manage to synchronize states between server & client?
Was this page helpful?