-
Notifications
You must be signed in to change notification settings - Fork 965
feat(wallet): partially persist redux stores #17631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6f04c43
to
7cf0dfb
Compare
A Storybook has been deployed to preview UI for the latest push |
7cf0dfb
to
7feee26
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
@@ -379,6 +379,7 @@ | |||
"react-window": "^1.8.5", | |||
"redux-act": "^1.8.0", | |||
"redux-logger": "^3.0.6", | |||
"redux-persist": "6.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there any alternative libraries that would work here which are more actively maintained?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the most actively maintained library that can persist subsets of state without additional dependencies.
https://github.com/react-stack/redux-storage#installation is also recommended in the redux docs, but that requires additional packages that haven't been touched in a while either (https://github.com/react-stack/redux-storage-engine-localstorage, https://github.com/react-stack/redux-storage-merger-simple, https://github.com/react-stack/redux-storage-decorator-filter, https://github.com/mathieudutour/redux-storage-decorator-migrate).
4654b4d
to
d3c21d2
Compare
A Storybook has been deployed to preview UI for the latest push |
38411dd
to
562fc43
Compare
A Storybook has been deployed to preview UI for the latest push |
Noting here that if we want to store the persisted data in a location other than local-storage, a custom interface from core can be utilized as long as it implements |
562fc43
to
318cdf5
Compare
A Storybook has been deployed to preview UI for the latest push |
318cdf5
to
b779486
Compare
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
A Storybook has been deployed to preview UI for the latest push |
8d815da
to
934a5b7
Compare
A Storybook has been deployed to preview UI for the latest push |
934a5b7
to
7e5a99e
Compare
A Storybook has been deployed to preview UI for the latest push |
0c88789
to
f9cb767
Compare
A Storybook has been deployed to preview UI for the latest push |
2140feb
to
d13c1cb
Compare
A Storybook has been deployed to preview UI for the latest push |
d13c1cb
to
7bd6d6b
Compare
A Storybook has been deployed to preview UI for the latest push |
const onPageRefreshInitiated = function ( | ||
event: KeyboardEvent | ||
): void { | ||
if ((event.ctrlKey || event.metaKey) && event.code === 'KeyR') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed internally too, but we probably want to purge for Shift + Cmd + R
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jamesmudgett , can we also get some designs to add a button somewhere to clear any persisted settings without resetting the entire wallet from settings?
7bd6d6b
to
7b1f55f
Compare
A Storybook has been deployed to preview UI for the latest push |
1 similar comment
A Storybook has been deployed to preview UI for the latest push |
7b1f55f
to
8bcfab9
Compare
A Storybook has been deployed to preview UI for the latest push |
5f35ce0
to
ef07a5b
Compare
A Storybook has been deployed to preview UI for the latest push |
ef07a5b
to
8656afe
Compare
A Storybook has been deployed to preview UI for the latest push |
8656afe
to
0910963
Compare
0910963
to
66996f7
Compare
A Storybook has been deployed to preview UI for the latest push |
Closing since partial persistence of the api-slice was not working. |
Resolves brave/brave-browser#29101
Security review: https://github.com/brave/security/issues/1220
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Scenario 1 - Clear storage via wallet reset
Scenario 2 - Clear storage via hard-refresh