Sammy
Sammy

Reputation: 3707

ngrx/effects, middleware or meta-reducer

In the Comprehensive introduction to ngrx/store it has been mentioned several times that

Middleware has been removed in ngrx/store v2. Please see the meta-reducers section for how to create similar functionality.

My question is, since ngrx/effects is middleware (or is it not?) then are there or are there going to be any side-effects (pardon the pun) on this project?

Upvotes: 2

Views: 2712

Answers (1)

Harshal Patil
Harshal Patil

Reputation: 21030

ngrx/effects library uses the idea of meta-reducer. I have not used ngrx/effects version 1 and thus cannot comment about it. However, starting version 2, that is how they are implemented. As an end-user, you should not notice any major breaking change.

An example use of meta-reducer is described in this blog post: https://netbasal.com/implementing-a-meta-reducer-in-ngrx-store-4379d7e1020a

Upvotes: 1

Related Questions