Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function routerReducer(state = defaultRouterState, action) {
switch (action.type) {
case router.ROUTER_NAVIGATION:
const newRouterState =
set('previousRoute', get('state', state), router.routerReducer(state, action));
return newRouterState;
default:
return state;
}
}