From 9c7b13e37beba7a6563d31d189ecfc94cfe162cd Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Sat, 30 Dec 2023 12:07:34 +0100 Subject: [PATCH] refactor: revert changes to oldImpl --- src/middleware/persist.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/middleware/persist.ts b/src/middleware/persist.ts index 8e59b32c83..025622fe92 100644 --- a/src/middleware/persist.ts +++ b/src/middleware/persist.ts @@ -271,8 +271,6 @@ const oldImpl: PersistImpl = (config, baseOptions) => (set, get, api) => { api, ) - api.getServerState = () => configResult - // a workaround to solve the issue of not storing rehydrated state in sync storage // the set(state) value would be later overridden with initial state by create() // to avoid this, we merge the state from localStorage into the initial state.