Created
October 20, 2016 17:42
-
-
Save bnhansn/244291ee04d22c4f0733f245cfddb930 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import { combineReducers } from 'redux'; | |
| import { reducer as form } from 'redux-form'; | |
| const appReducer = combineReducers({ | |
| form, | |
| }); | |
| export default function (state, action) { | |
| if (action.type === 'LOGOUT') { | |
| return appReducer(undefined, action); | |
| } | |
| return appReducer(state, action); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment