From 1d00310bf155a2ca93dffbf2581fbf17d9524190 Mon Sep 17 00:00:00 2001 From: Luca Micieli Date: Fri, 19 Feb 2021 19:52:22 +0100 Subject: [PATCH] feat(app-general): attach analytics saga --- packages/game-app/src/_shared/analytics/index.ts | 2 +- packages/game-app/src/_shared/store/rootSaga.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/game-app/src/_shared/analytics/index.ts b/packages/game-app/src/_shared/analytics/index.ts index 955e43b3..5602f7b1 100644 --- a/packages/game-app/src/_shared/analytics/index.ts +++ b/packages/game-app/src/_shared/analytics/index.ts @@ -14,6 +14,6 @@ export function* identifySaga(action: ReturnType) { }); } -export default function* sagas() { +export function* saga() { yield takeEvery(actions.identify, identifySaga); } diff --git a/packages/game-app/src/_shared/store/rootSaga.ts b/packages/game-app/src/_shared/store/rootSaga.ts index f4ddec7c..ca7dac53 100644 --- a/packages/game-app/src/_shared/store/rootSaga.ts +++ b/packages/game-app/src/_shared/store/rootSaga.ts @@ -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'; @@ -20,6 +21,7 @@ export default function* rootSaga() { gameSaga, createGameSaga, userGameStatusSaga, + analyticsSaga, ]; yield all( sagas.map(saga =>