Use of reselect library
varghesep opened this issue · 3 comments
I just bought your book Reactive Programming with Angular and ngrx. Thanks for putting together such a good book.
The official ngrx example uses a library called reselect. I don't fully understand the reason behind using that library, but I think it is to prevent a trip to the server to retrieve the data if the data is already available in the redux store
.
Will the reselect
library be useful in the echoes-player to improve performance?
hi @varghesep
thanks for kind complements.
i've the chance of looking to reselect just a little bit.
currently i have some kind of direction of where the reselect would fit in echoesplayer. i'm not sure about improving performance.
However, from what i can see of its features, i should cache state selections by manipulating accessors to retrieve the state.
ngrx 4 now has createSelector which provides the perf benefits the OP mentions