Created
March 15, 2017 07:40
-
-
Save asn007/a563f947897ed1f93ec2e8882ff068ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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