Created
October 21, 2016 19:58
-
-
Save bnhansn/925fd10d4d68e280cd7899b4e3e159c1 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'; | |
| import rooms from './rooms'; // new line | |
| const appReducer = combineReducers({ | |
| form, | |
| session, | |
| rooms, // new line | |
| }); | |
| 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