Skip to content

Commit

Permalink
Blacklist following items from redux-persist reducer config to avoid …
Browse files Browse the repository at this point in the history
…saving them to localstorage.

assets, annoucements, tokens , protocol settings and errors
These items need not be saved in localstorage. Errors can be sent to backend sentry.
  • Loading branch information
ajinkyaraj-23 committed Feb 12, 2025
1 parent 8e5262f commit 5c297e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/state/src/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const makeReducer = (storage_: Storage | undefined) => {
key: "root",
version: VERSION,
storage,
blacklist: ["accounts"],
blacklist: ["accounts", "assets", "announcements", "tokens", "protocolSettings", "errors"],
migrate: createAsyncMigrate(mainStoreMigrations, { debug: false }),
};

Expand Down

0 comments on commit 5c297e1

Please sign in to comment.