Skip to content

Instantly share code, notes, and snippets.

@asn007
Created March 15, 2017 07:40
Show Gist options
  • Save asn007/a563f947897ed1f93ec2e8882ff068ed to your computer and use it in GitHub Desktop.
Save asn007/a563f947897ed1f93ec2e8882ff068ed to your computer and use it in GitHub Desktop.
const appReducer = combineReducers({
// твои редьюсеры
});
const rootReducer = (state, action) => {
if(action == 'LOGOUT_USER')
state = undefined
return appReducer(state, action);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment