Skip to content

Commit

Permalink
feat(app-general): attach analytics saga
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Feb 19, 2021
1 parent a90aaa6 commit 1d00310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/game-app/src/_shared/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export function* identifySaga(action: ReturnType<typeof actions.identify>) {
});
}

export default function* sagas() {
export function* saga() {
yield takeEvery(actions.identify, identifySaga);
}
2 changes: 2 additions & 0 deletions packages/game-app/src/_shared/store/rootSaga.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Saga } from 'redux-saga';
import { all, call, spawn } from 'redux-saga/effects';
import { saga as authSaga } from '@pipeline/auth';
import { saga as analyticsSaga } from '@pipeline/analytics';
import signupSaga from '../../signup/sagas';
import gameSaga from '../../gameView/sagas';
import createGameSaga from '../../createGame/sagas';
Expand All @@ -20,6 +21,7 @@ export default function* rootSaga() {
gameSaga,
createGameSaga,
userGameStatusSaga,
analyticsSaga,
];
yield all(
sagas.map(saga =>
Expand Down

0 comments on commit 1d00310

Please sign in to comment.