JacobTristan
JacobTristan

Reputation: 45

Angular Effect not getting called

I could be wrong with the title but I have done all the research I could and it all looks right to me.

Here is the StackBlitz link for the store I have setup. For some reason the pickupData is returning undefined in my selector which has me thrown off a bit.

I have the effect added to the the app.module file and I am trying to call it in my component like

public driverData$ = this.store.pipe(select(fromRoot.getPickupData));

Upvotes: 0

Views: 69

Answers (1)

Mike Tung
Mike Tung

Reputation: 4821

OP's problem was solved by dispatching an action first to trigger his effect.

Upvotes: 1

Related Questions