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
isServer
.
But main question: how do I handle this hydration error? How can I manage to synchronize states between server & client?