Skip to content
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

Persist only one reducer with sub elements everything else is blacklisted, how? #29

Open
c0d3x opened this issue Mar 17, 2020 · 0 comments

Comments

@c0d3x
Copy link

c0d3x commented Mar 17, 2020

How to persist only 1 reducer with couple of keys everything else in that reducer is blacklisted?
My 10+ other reducers should also be blacklisted by default, I dont want to have to define each of them manually.

My config:

const persistMyReducer = persistFilter('myReducer', ['myReducerObject1', 'myReducerObject2'], 'whitelist');

const persistConfig = {
    key: 'root',
    storage,
    transforms: [persistMyReducer]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant