fixed history listener

This commit is contained in:
muerwre 2019-02-12 16:28:18 +07:00
parent 0a01c91271
commit 45ffff3550
2 changed files with 6 additions and 6 deletions

View file

@ -43,7 +43,8 @@ export function configureStore(): { store: Store<any>, persistor: Persistor } {
}
export const history = createBrowserHistory();
// export const historyListener = history.listen((location, action) => {
// if (action === 'REPLACE') return;
// store.dispatch(locationChanged(location.pathname));
// });
history.listen((location, action) => {
if (action === 'REPLACE') return;
store.dispatch(locationChanged(location.pathname));
});