You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 theprice
derived data within my reducer.There is no reason put this logic within
mapStateToProps
. So it can avoid the duplicated compute?Am I right?
The text was updated successfully, but these errors were encountered: