|
|
@ -88,6 +88,7 @@ const save = (dispatch: Dispatch, getState: GetState): void => {
|
|
|
|
|
|
|
|
|
|
|
|
const LocalStorageService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => {
|
|
|
|
const LocalStorageService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Application live cycle starts here
|
|
|
|
if (action.type === LOCATION_CHANGE) {
|
|
|
|
if (action.type === LOCATION_CHANGE) {
|
|
|
|
const { location } = api.getState().router;
|
|
|
|
const { location } = api.getState().router;
|
|
|
|
if (!location) {
|
|
|
|
if (!location) {
|
|
|
|