We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The suggestion is to add an option to exclude paths. This allows for more fine-grained persistence without requiring to change store structure:
persist: [{ key: 'foo-unsecure', paths: ['foo'], excludedPaths: ['foo.bar', 'foo.baz'], storage: localStorage }, { key: 'foo', paths: ['foo.bar', 'foo.baz'], storage: sessionStorage }]
let toStore = state; if (paths?.length) { toStore = pick(toStore, ...paths); } if (excludedPaths?.length) { toStore = omit(toStore, ...excludedPaths); }
No response
The text was updated successfully, but these errors were encountered:
Hi, this is a fairly easy enhancement that can be considered! I'll try to do it asap :)
Sorry, something went wrong.
Happy to do this, if the issue is still open for assignment?
Hi @marktlinn it still is, the requirements are to use no external libraries, and keep the code as small and readable as possible 😄
No branches or pull requests
Clear and concise description of the problem
The suggestion is to add an option to exclude paths. This allows for more fine-grained persistence without requiring to change store structure:
Suggested solution
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: