Skip to content

I have question about memoization of data. Please help! #1638

@maximusnikulin

Description

@maximusnikulin

I have array of data. I would like sort and filter it. I have a few experience with redux. I have solved it implementing the sorting and filtration in reducers but then I read some answers by Dan Abramov that it needs separate concern between stateTree of redux and UI.
So, I think that the filtering and sorting are responsibility of UI. I tried implement it in Smart component using reselect. I implemented it but when I click to sort then implementing filtering.
Can I implement it without additional filtering?
Stackoverflow: http://stackoverflow.com/questions/36686243/how-can-i-watch-for-state-of-data-in-redux-container-when-i-want-to-sort-or-fil
Code: https://github.com/maximusnikulin/SearchAndFilter/blob/master/js/containers/PersonsBoard.js
I am trying to solve this problem for a few last days. I hope you will advice me something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions