fix: Fix router synchronization with redux store

This commit is contained in:
Maksim Eltyshev
2022-12-15 01:34:48 +01:00
parent 1fda1bc687
commit 381146b991
19 changed files with 157 additions and 47 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { call, put, select, take } from 'redux-saga/effects';
import { push } from 'redux-first-history';
import { push } from '../../../lib/redux-router';
import request from '../request';
import selectors from '../../../selectors';
+2 -2
View File
@@ -1,8 +1,8 @@
import { takeEvery } from 'redux-saga/effects';
import { LOCATION_CHANGE } from 'redux-first-history';
import { LOCATION_CHANGE_HANDLE } from '../../../lib/redux-router';
import services from '../services';
export default function* routerWatchers() {
yield takeEvery(LOCATION_CHANGE, () => services.handleLocationChange());
yield takeEvery(LOCATION_CHANGE_HANDLE, () => services.handleLocationChange());
}
+1 -1
View File
@@ -1,5 +1,5 @@
import { call, put, select } from 'redux-saga/effects';
import { push } from 'redux-first-history';
import { push } from '../../../lib/redux-router';
import selectors from '../../../selectors';
import Paths from '../../../constants/Paths';
+2 -2
View File
@@ -1,8 +1,8 @@
import { takeEvery } from 'redux-saga/effects';
import { LOCATION_CHANGE } from 'redux-first-history';
import { LOCATION_CHANGE_HANDLE } from '../../../lib/redux-router';
import services from '../services';
export default function* routerWatchers() {
yield takeEvery(LOCATION_CHANGE, () => services.handleLocationChange());
yield takeEvery(LOCATION_CHANGE_HANDLE, () => services.handleLocationChange());
}