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

Entire state object gets persisted in each reducer #25

Open
Zazzzles opened this issue Feb 18, 2020 · 3 comments
Open

Entire state object gets persisted in each reducer #25

Zazzzles opened this issue Feb 18, 2020 · 3 comments

Comments

@Zazzzles
Copy link

My setup is as follows:

createRootReducer(){
   return combineReducers({
     auth: authReducer,
     creds: credsReducer,
     content: persistentDocumentReducer(db, 'content')(contentReducer),
   })
}

I am running into an issue where the only thing I want to persist in the db is content but the entire state gets written to db including auth and creds which I have not included in the persistentDocumentReducer

Any ideas?

@fabioDMFerreira
Copy link

Hey @Zazzzles. I'm not able to reproduce this issue in my project.

Which version are you using?
Could you paste the code you are using to create the store?

@khou22
Copy link

khou22 commented Sep 9, 2020

@Zazzzles I am having the same issue. Were you able to find a fix for this?

@Zazzzles
Copy link
Author

@khou22 Unfortunately not... I switched over to manually persisting and then rehydrating the store when required.

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

3 participants