NgRX effects - Type 'Observable' is not assignable to type 'Observable'

前端 未结 9 1108
你的背包
你的背包 2020-12-16 10:12

While working with NgRX 8 my colleagues and me are frequently facing a weird error message when implementing the effects.

Type \'Observable

9条回答
  •  星月不相逢
    2020-12-16 10:38

    Actually you need to treat actions created by createAction as a function and call it to return the action object. Check this desc. So your of(addCommentFailed) should be of(addCommentFailed()).

提交回复
热议问题