From 18e6389749b36512f6cb5483a35383ab08ce1caf Mon Sep 17 00:00:00 2001 From: Rifqi M Fahmi Date: Fri, 31 Jan 2025 10:41:24 +0800 Subject: [PATCH] Update README.md - Follow docs just noticed a little bit of inconsistency in the doc and README.md https://zustand.docs.pmnd.rs/integrations/persisting-store-data --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 99b3131119..a82b491bde 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,7 @@ You can persist your store's data using any kind of storage. import { create } from 'zustand' import { persist, createJSONStorage } from 'zustand/middleware' -const useFishStore = create( +const useFishStore = create()( persist( (set, get) => ({ fishes: 0,