From 52d6b88b84a1b880ababc94f555d182cac807f62 Mon Sep 17 00:00:00 2001 From: "Ricardo M." Date: Tue, 12 Aug 2025 12:22:07 -0400 Subject: [PATCH] Adjust wrapTemporal syntax The `wrapTemporal` signature looks like it's not correct. --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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' - }); - }, + }), } ) )