mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
map_list: initial
urls: editing now handled through urls
This commit is contained in:
parent
3771e5d338
commit
0d9bad9095
23 changed files with 386 additions and 68 deletions
|
@ -6,6 +6,8 @@ import createSagaMiddleware from 'redux-saga';
|
|||
|
||||
import { userReducer } from '$redux/user/reducer';
|
||||
import { userSaga } from '$redux/user/sagas';
|
||||
import { createBrowserHistory } from 'history';
|
||||
import { locationChanged } from '$redux/user/actions';
|
||||
|
||||
const userPersistConfig = {
|
||||
key: 'user',
|
||||
|
@ -42,3 +44,8 @@ export function configureStore() {
|
|||
|
||||
return { store, persistor };
|
||||
}
|
||||
|
||||
export const history = createBrowserHistory();
|
||||
export const historyListener = history.listen(location => {
|
||||
store.dispatch(locationChanged(location.pathname));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue