I am trying to write an effect for an action but it is throwing an error as: “Effect “n.loadInfo$” dispatched an invalid action: null Error” I have my effect as below: I have my action defined as below: And in the service as below: I have selector as below that is used in the effect: Create reducer as below after
Tag: ngrx-effects
Action doesn’t trigger effect the THIRD time when it runs
Effects runs perfectly on first two dispatch of action but doesn’t trigger on the third time.The solution in Why action doesn’t trigger Effect the second time it runs and @ngrx Effect does not run the second time doesn’t work for me. Here’s the effect: Answer I also had a similar problem. The issue was with my reducer. In my reducer