Skip to content

Instantly share code, notes, and snippets.

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