Reducer not catching LOCATION_CHANGE action

you can use string "@@router/LOCATION_CHANGE" to catch the action.

react-router-redux provides const for that

import { LOCATION_CHANGE } from 'react-router-redux'

....
case LOCATION_CHANGE:
      console.warn('LOCATION_CHANGE from your reducer',action)
      return state

webpackbin DEMO

enter image description here

routerReducer code from react-router-redux


You can also import the constant from the 'react-router-redux'.

import { LOCATION_CHANGE } from 'react-router-redux'
 ...
 case LOCATION_CHANGE:
     console.warn('LOCATION_CHANGE from your reducer',action)
     return state