Skip to content

Commit

Permalink
whitelist: ['contacts']
Browse files Browse the repository at this point in the history
se memoreaza in local storage doar contactele.
  • Loading branch information
danretegan committed Mar 7, 2024
1 parent 67cb929 commit 05fa555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redux/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import storage from 'redux-persist/lib/storage';
const persistConfig = {
key: 'root',
storage,
whitelist: ['contacts'], // se memoreaza in local storage doar contactele.
};

const persistedReducer = persistReducer(
Expand Down

0 comments on commit 05fa555

Please sign in to comment.