summaryrefslogtreecommitdiff
path: root/frontend/src/sagas.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/sagas.js')
-rw-r--r--frontend/src/sagas.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/src/sagas.js b/frontend/src/sagas.js
index a1f80c73..4a93ffb4 100644
--- a/frontend/src/sagas.js
+++ b/frontend/src/sagas.js
@@ -1,10 +1,11 @@
// @flow
import type { History } from 'react-router';
-import { router } from 'redux-saga-router';
import { call, fork } from 'redux-saga/effects';
import { connectToGame, SevenWondersSession } from './api/sevenWondersApi';
-import { makeSagaRoutes } from './routes';
import errorHandlingSaga from './sagas/errors';
+import homeSaga from './sagas/home';
+import gameBrowserSaga from './sagas/gameBrowser';
+import lobbySaga from './sagas/lobby';
export default function* rootSaga(history: History): * {
let sevenWondersSession: SevenWondersSession | void;
@@ -15,5 +16,7 @@ export default function* rootSaga(history: History): * {
return;
}
yield fork(errorHandlingSaga, sevenWondersSession);
- yield* router(history, makeSagaRoutes(sevenWondersSession));
+ yield fork(homeSaga, sevenWondersSession);
+ yield fork(gameBrowserSaga, sevenWondersSession);
+ yield fork(lobbySaga, sevenWondersSession);
}
bgstack15