routes: interface initial

This commit is contained in:
muerwre 2018-12-12 15:27:17 +07:00
parent 2cfd9067a9
commit d11dd9043c
9 changed files with 214 additions and 7 deletions

View file

@ -435,6 +435,13 @@ function* keyPressedSaga({ key }): void {
return;
}
function* searchSetSaga() {
yield delay(500);
const { routes: { filter: { title, distance, tab }}} = yield select(getState);
console.log({ title, distance, tab });
}
export function* userSaga() {
yield takeLatest(REHYDRATE, authCheckSaga);
yield takeEvery(ACTIONS.SET_MODE, setModeSaga);
@ -467,4 +474,9 @@ export function* userSaga() {
yield takeLatest(ACTIONS.KEY_PRESSED, keyPressedSaga);
yield takeLatest(ACTIONS.IFRAME_LOGIN_VK, iframeLoginVkSaga);
yield takeLatest([
ACTIONS.SEARCH_SET_TITLE,
ACTIONS.SEARCH_SET_DISTANCE,
], searchSetSaga)
}