diff --git a/README.md b/README.md index f4cda69..060e2d2 100644 --- a/README.md +++ b/README.md @@ -458,11 +458,10 @@ const useStoreWithUndo = create()( // your store fields }), { - wrapTemporal: (storeInitializer) => { + wrapTemporal: (storeInitializer) => persist(storeInitializer, { // <-- persist name: 'temporal-persist' - }); - }, + }), } ) )