Skip to content

Commit

Permalink
refactor: revert changes to oldImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Dec 30, 2023
1 parent 2d868c6 commit 9c7b13e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/middleware/persist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9c7b13e

Please sign in to comment.