Skip to content

Commit

Permalink
Merge pull request #307 from Build-Squad/minor-fixes-prod
Browse files Browse the repository at this point in the history
Refactor store configuration to include blacklist and timeout options
  • Loading branch information
muditmahajan authored Apr 8, 2024
2 parents a3bf4a5 + 60b83d4 commit f8b46e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ const userPersistConfig = {
key: "user",
storage: storage,
whitelist: ["user"],
blacklist: ["navigation"],
timeout: 1000,
};

const cartPersistConfig = {
key: "cart",
storage: storage,
whitelist: ["cart"],
blacklist: ["navigation"],
timeout: 1000,
};

const persistedUserReducer = persistReducer(
Expand Down

0 comments on commit f8b46e5

Please sign in to comment.