Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] reselect, about compute derived data. #2

Open
mrdulin opened this issue Jan 9, 2017 · 0 comments
Open

[question] reselect, about compute derived data. #2

mrdulin opened this issue Jan 9, 2017 · 0 comments

Comments

@mrdulin
Copy link

mrdulin commented Jan 9, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant