Created
October 21, 2016 14:27
-
-
Save bnhansn/67ba4731ad4c8aaa267cd29e4c8d580d 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'; | |
| import session from './session'; | |
| const appReducer = combineReducers({ | |
| form, | |
| session, | |
| }); | |
| 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