Hydration
Restoring persisted state after launch. The store starts with its initial state and the saved state arrives asynchronously, so the first render may be empty; persist.hasHydrated() says when it is safe to treat the state as loaded.
Learn this concept
Lesson 4.12 · Persisting Zustand stateUsed in exercises
Exercise 4.13 · Persisted cart storePrerequisite conceptspersist middleware