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

Issue using with redux-persist on REHYDRATE action type. #20

Open
yugantar7 opened this issue Dec 12, 2018 · 0 comments
Open

Issue using with redux-persist on REHYDRATE action type. #20

yugantar7 opened this issue Dec 12, 2018 · 0 comments

Comments

@yugantar7
Copy link

yugantar7 commented Dec 12, 2018

I am using both redux-persist and redux-persist-crosstab and the reducers return the Initial State of the application when action type is REHYDRATE for handling the corrupt state.

const reducer1 = (state=INITIAL_STATE.reducer1, action) => {
        case REHYDRATE:
            return INITIAL_STATE;

        default:
            return state;
    }
}

Now crosstab overlaps with it because even crosstab uses REHYDRATE action - So, whenever I open a new tab, the initial state is returned and not the updated state from other tabs.
persistor.rehydrate(statePartial, {serial: true})

What to do in such a case?

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