usehooks-ts icon indicating copy to clipboard operation
usehooks-ts copied to clipboard

useSessionStorage causing React+Nextjs application crash. Error "Hydration failed because the initial UI does not match what was rendered on the server"

Open roker15 opened this issue 2 years ago • 0 comments

My application was working fine. I was required to refresh pages without losing state. so i replaced useState with useSessionStorage wherever required. Now it throwing error Hydration failed because the initial UI does not match what was rendered on the server

This Link might help but not sure.

roker15 avatar Jul 02 '22 17:07 roker15