-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
middleware/persistThis issue is about the persist middlewareThis issue is about the persist middleware
Description
Hello, I'm using the persist
middleware on my store with Nextjs (SSG) and I got several warnings in dev mode all pointing:
Error: Hydration failed because the initial UI does not match what was rendered on the server.
It doesn't break the app however.
Looks like the zustand store rehydrates before Nextjs has finished its rehydration process.
Is there a way trigger the rehydration of the zustand store after Nextjs' rehydration process or are there better ways of handling this?
PawaOx4th, haandol, MoustaphaDev, Ash-Kay, Lanmord and 17 more
Metadata
Metadata
Assignees
Labels
middleware/persistThis issue is about the persist middlewareThis issue is about the persist middleware