ngrx effect not being called when action is dispatched from component

前端 未结 5 1061
猫巷女王i
猫巷女王i 2021-02-12 11:07

I am having an issue with the ngrx store not dispatching an action to the effect supposed to deal with it.

Here is the component that tries to dispatch:



        
5条回答
  •  一整个雨季
    2021-02-12 11:47

    Another possible reason is that if you used ng generate to create the module where you imported the Effects make sure it is imported in the App Module as the following command 'ng generate module myModule' will not add it to the app module.

提交回复
热议问题