In NgRx, why are the action-types split from the actual action-class?

时间:2019-04-08 13:51:50

标签: ngrx

I wonder why NgRx makes an extra split between the ActionTypes and the actual Action-class?

Why don't they put the ActionType straight on the class as a static property? This way you can reference the action straight from the reducer, removing some extra abstraction layer.

1 个答案:

答案 0 :(得分:-1)

我们发布了支持该版本的7.4。

Pull request

Docs

NgRx: Action Creators redesigned by Alex