Skip to content

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

Description

@mrdulin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions