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

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

Closed
maximusnikulin opened this issue Apr 19, 2016 · 0 comments
Closed

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

maximusnikulin opened this issue Apr 19, 2016 · 0 comments
Labels

Comments

@maximusnikulin
Copy link

maximusnikulin commented Apr 19, 2016

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.

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

No branches or pull requests

2 participants