added editable route

This commit is contained in:
Fedor Katurov 2019-12-30 13:16:35 +07:00
parent 5664291c92
commit fca52df9f5
17 changed files with 282 additions and 11 deletions

View file

@ -9,6 +9,7 @@ import { userSaga } from '$redux/user/sagas';
import { createBrowserHistory } from 'history';
import { locationChanged } from '$redux/user/actions';
import { PersistConfig, Persistor } from "redux-persist/es/types";
import { map, IMapReducer } from '$redux/map';
const userPersistConfig: PersistConfig = {
key: 'user',
@ -18,6 +19,7 @@ const userPersistConfig: PersistConfig = {
export interface IState {
user: IRootReducer
map: IMapReducer,
}
// create the saga middleware
export const sagaMiddleware = createSagaMiddleware();
@ -32,6 +34,7 @@ const composeEnhancers =
export const store = createStore(
combineReducers({
user: persistReducer(userPersistConfig, userReducer),
map,
// routing: routerReducer
}),
composeEnhancers(applyMiddleware(/* routerMiddleware(history), */ sagaMiddleware))