fixed loading route and maps

This commit is contained in:
Fedor Katurov 2019-12-12 13:52:30 +07:00
parent 1f774a8299
commit 62cb8d8e18
18 changed files with 715 additions and 369 deletions

View file

@ -4,7 +4,7 @@ import { persistStore, persistReducer } from 'redux-persist';
import storage from 'redux-persist/lib/storage';
import createSagaMiddleware from 'redux-saga';
import { userReducer } from '$redux/user/reducer';
import { userReducer, IRootReducer } from '$redux/user/reducer';
import { userSaga } from '$redux/user/sagas';
import { createBrowserHistory } from 'history';
import { locationChanged } from '$redux/user/actions';
@ -16,6 +16,9 @@ const userPersistConfig: PersistConfig = {
storage,
};
export interface IState {
user: IRootReducer
}
// create the saga middleware
export const sagaMiddleware = createSagaMiddleware();