You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm try to inject Action Creator into Saga middleware function.
But Im getting this error:
ORIGINAL EXCEPTION: Cannot instantiate cyclic dependency! (Token @ngrx/store Saga Effect -> ApplicativeRoomModel -> Store -> StoreBackend)
Hi,
I'm try to inject Action Creator into Saga middleware function.
But Im getting this error:
ORIGINAL EXCEPTION: Cannot instantiate cyclic dependency! (Token @ngrx/store Saga Effect -> ApplicativeRoomModel -> Store -> StoreBackend)
`
export const BingoRoomSaga = createSaga(function(applicativeRoom: ApplicativeRoomModel) {
return function(saga$: Observable) {
return saga$
.filter(iteration => iteration.action.type === 'ACTION')
.map((saga) => { ....... });
};
}, [ ApplicativeRoomModel ]);
`
ApplicativeRoomModel has:
constructor(private store: Store) { ..... }
I found that if i comment the store from constructor it's working just fine. but I need this store.
Any ideas?
The text was updated successfully, but these errors were encountered: