const rootReducer = (state, action) => { if (action.type === 'RESET') { state = undefined } return appReducer(state, action) }
const rootReducer = (state, action) => { // logout user if (action.type === 'LOGOUT_SUCCESS') { navigator.credentials.preventSilentAccess(); state = undefined } return appReducer(state, action) }
export default function rootReducer(state, action){ if(action && action.type === 'REPLACE_STATE'){ return action.state } return appReducer(state, action) }
const rootReducer = (state, action) => { if (action.type === userConstants.LOGOUT) { state = undefined; } return appReducer(state, action); }
const rootReducer = (state, action) => { if (action.type === 'RESET') { state = undefined } return appReducer(state, action) }
const rootReducer = (state, action) => { if (action.type === USER_LOGGED_OUT) { return {}; } return appReducer(state, action); }
const rootReducer = (state, action) => { if (action.type === userConstants.LOGOUT) { state = undefined; } return appReducer(state, action); }
const reducer = (state, action) => { // Clear state on sign out if (action.type === SIGN_OUT_SUCCESS) { state = undefined; } return appReducer(state, action); }
const rootReducer = (state, action) => { if (action.type === 'LOGOUT') { state = undefined } return appReducer(state, action) }
const rootReducer = (state, action) => { if(action.type === USER_SIGN_OUT) { state = { user: INITIAL_USER_STATE } } return appReducer(state,action) }
const rootReducer = (state, action) => { if(action.type === USER_SIGN_OUT) { state = { user: INITIAL_USER_STATE } } return appReducer(state,action) }
const rootReducer = (state, action) => { if (action.type === 'RESET') { state = undefined } return appReducer(state, action) }
const rootReducer = (state, action) => { if (action.type === 'GLOBAL_RESET') { state = undefined } return appReducer(state, action) }
// Setup root reducer const rootReducer = (state, action) => { const newState = (action.type === 'RESET') ? undefined : state; return appReducer(newState, action); }
const rootReducer = (state, action) => { if (action.type === 'UN_AUTHENTICATE_USER') { state = undefined } return appReducer(state, action) }