import appReducer from '../reducers';
const rootReducer = (state, action) => {
if (action.type === 'URL_CHANGED') {
state = undefined;
}
return appReducer(state, action);
};
import { combineReducers } from 'redux';
import someone from './someone';
import someoneT from './someoneT';
export const rootReducer = (state, action) => {
if (action.type === 'URL_CHANGED') {
state = {}
}
return appReducer(state, action)
}
const appReducer = combineReducers({
someone,
someoneT
})