ngrx effect not being called when action is dispatched from component

前端 未结 5 1823
情书的邮戳
情书的邮戳 2021-02-12 11:35

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:40

    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.

提交回复
热议问题