Skip to content

Commit

Permalink
[FIX]: return all data which set before persist
Browse files Browse the repository at this point in the history
  • Loading branch information
masoud-shahpoori committed Nov 3, 2024
1 parent ca9ef65 commit 5b3a2e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-persist-x",
"version": "1.1.2",
"version": "1.1.4",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down Expand Up @@ -62,5 +62,8 @@
"tsdx": "^0.14.1",
"tslib": "^2.8.0",
"typescript": "^5.6.3"
},
"dependencies": {
"redux-persist-x": "^1.1.3"
}
}
2 changes: 1 addition & 1 deletion src/persistor/persistReducer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function persistReducer<S, A extends Action>(
case REHYDRATE_PERSIST_ACTION:
if (!isPaused && action.payload) {
return {
...baseReducer,
...state,
...action.payload,
};
}
Expand Down

0 comments on commit 5b3a2e9

Please sign in to comment.