Skip to content

Instantly share code, notes, and snippets.

@bnhansn
Created October 21, 2016 19:58
Show Gist options
  • Save bnhansn/925fd10d4d68e280cd7899b4e3e159c1 to your computer and use it in GitHub Desktop.
Save bnhansn/925fd10d4d68e280cd7899b4e3e159c1 to your computer and use it in GitHub Desktop.
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