Zustand persist: version bump, migrate, and merge behavior for evolving nested state
Configuration goal I have a Zustand store using the persist middleware (default localStorage via createJSONStorage ) with version: 1 . The state shape is changing: a nested preferences object is gaining new fields with defaults, and one old field is being renamed. I need existing users' persisted snapshots to keep working after the update. Constraints and un