-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
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.