useHydrateAtoms causes hydration mismatch! #3230
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
|
If you watch the video. task 5 and task 6 was serially. And then I reorder it now task 6 and task 5 data. On refresh, somehow it keeping before updating state snapshot, then in first render it get the update data. Why it keeping previous state snapshots. Screen.Recording.2026-01-30.at.8.34.57.PM.mov |
Beta Was this translation helpful? Give feedback.
-
|
Do you use |
Beta Was this translation helpful? Give feedback.
-
|
Hello, @dai-shi , thanks for replying. As I said, actually I am not using I create a minimal reproduction- https://github.com/siamahnaf/hydration-mismatch Please try it in your machine. Steps-
Create a I also deployed it into vercel. In production you will see the the updated data not hydrating instead it always hydrating previous state snapshots. Please watch following video- Screen.Recording.2026-01-31.at.12.10.58.PM.mov@dai-shi , also I am getting a console warning each time-
Although I am not sharing or using |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Is |
Beta Was this translation helpful? Give feedback.

useHydrateAtomsdoesn't work correctly with the default store on the server env.Let me know if adding
Providerfixes your issue, or not.