map_list: initial

urls: editing now handled through urls
This commit is contained in:
muerwre 2018-12-05 14:16:23 +07:00
parent 3771e5d338
commit 0d9bad9095
23 changed files with 386 additions and 68 deletions

View file

@ -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));
});