diff --git a/src/modules/RouterInteraction/index.js b/src/modules/RouterInteraction/index.js index b7d1d3727c..cbc057be42 100644 --- a/src/modules/RouterInteraction/index.js +++ b/src/modules/RouterInteraction/index.js @@ -1,6 +1,6 @@ import RcModule from 'ringcentral-integration/lib/RcModule'; import { useRouterHistory, createMemoryHistory, hashHistory } from 'react-router'; -import { syncHistoryWithStore, routerReducer } from 'react-router-redux'; +import { syncHistoryWithStore, routerReducer, LOCATION_CHANGE } from 'react-router-redux'; function getDefaultHistory() { // if (typeof window !== 'undefined') { @@ -33,4 +33,10 @@ export default class RouterInteraction extends RcModule { get currentPath() { return this.state.locationBeforeTransitions.pathname; } + + get actionTypes() { + return { + locationChange: LOCATION_CHANGE + }; + } }