diff options
author | Victor Chabbert <chabbertvi@eisti.eu> | 2017-01-29 12:29:19 +0100 |
---|---|---|
committer | Victor Chabbert <chabbertvi@eisti.eu> | 2017-01-29 12:29:19 +0100 |
commit | 5e06e7af190d3aad0f9a70285a9c906c4eb8a126 (patch) | |
tree | cd49136aa83125456e2eb1c39db508ca5322ba20 /frontend/src/routes.js | |
parent | Add zeus temple background as potential home background (diff) | |
download | seven-wonders-5e06e7af190d3aad0f9a70285a9c906c4eb8a126.tar.gz seven-wonders-5e06e7af190d3aad0f9a70285a9c906c4eb8a126.tar.bz2 seven-wonders-5e06e7af190d3aad0f9a70285a9c906c4eb8a126.zip |
Update redux-saga-router to 2.0.0
Diffstat (limited to 'frontend/src/routes.js')
-rw-r--r-- | frontend/src/routes.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/frontend/src/routes.js b/frontend/src/routes.js index c0adcde5..70762aa2 100644 --- a/frontend/src/routes.js +++ b/frontend/src/routes.js @@ -1,20 +1,13 @@ -import { fork, take, cancel } from 'redux-saga/effects' +import { fork } from 'redux-saga/effects' import usernameChoiceSaga from './sagas/usernameChoice' import gameBrowserSaga from './sagas/gameBrowser' -import { LOCATION_CHANGE } from 'react-router-redux' export const makeSagaRoutes = wsConnection => ({ *'/'() { - const saga = yield fork(usernameChoiceSaga, wsConnection) - yield take(LOCATION_CHANGE) - yield cancel(saga) - yield console.log('canceled home') + yield fork(usernameChoiceSaga, wsConnection) }, *'/games'() { - const saga = yield fork(gameBrowserSaga, wsConnection) - yield take(LOCATION_CHANGE) - yield cancel(saga) - yield console.log('canceled games') + yield fork(gameBrowserSaga, wsConnection) } }) |