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?
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?