summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/routes.js13
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)
}
})
bgstack15