mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed history listener
This commit is contained in:
parent
0a01c91271
commit
45ffff3550
2 changed files with 6 additions and 6 deletions
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue