I read your code and your article.
But I think I can compute derived data in my reducer. So is it necessary to put the compute logic within mapStateToProps?
example:
when I fetch bookList data from server, I can compute the price derived data within my reducer.
There is no reason put this logic within mapStateToProps. So it can avoid the duplicated compute?
Am I right?
I read your code and your article.
But I think I can compute derived data in my reducer. So is it necessary to put the compute logic within
mapStateToProps?example:
when I fetch
bookListdata from server, I can compute thepricederived data within my reducer.There is no reason put this logic within
mapStateToProps. So it can avoid the duplicated compute?Am I right?