79716386

Date: 2025-07-27 12:16:35
Score: 1
Natty:
Report link

Persist is working when implemented like this as per zustand documentation:

const useUserStore = create<UserState>()(
  persist(
    (set) => ({
      userId: crypto.randomUUID(),
      setUserId: (userId: any) => set({ userId }),
    }),
    { name: "myioko-user-storage" }
  )
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rahul Verma