at the end of the day, it was inevitable
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { handleActions } from 'redux-actions'
|
||||
import { fromJS } from 'immutable'
|
||||
import { LOCATION_CHANGE } from 'react-router-redux'
|
||||
|
||||
export const initialState = fromJS({
|
||||
locationBeforeTransitions: null
|
||||
})
|
||||
|
||||
export default handleActions({
|
||||
[LOCATION_CHANGE]: (state, {payload}) => {
|
||||
return state.set('locationBeforeTransitions', payload)
|
||||
}
|
||||
}, initialState)
|
||||
Reference in New Issue
Block a user