Zustand Persist Middleware: Configuration, Serialization Limits, and Recovery Patterns
Configure Zustand's persist middleware to survive reloads without serializing functions, leaking secrets, or corrupting state on migration. Includes a worked cart-only example, migration pattern, and verification checklist.