Answer the question
In order to leave comments, you need to log in
How to correctly implement sorting and sorting in redux for large amounts of data?
There is a large date set (1-10kk) of entities, it is necessary to perform sorting, filtering, and so on.
Now it works like this: a request is made => we get some part of the data and store it in redux => display it.
If filters are needed, then we make the same request and overwrite the old data that is without a filter.
Does it make sense for such data to save entities for which a request has already been made. If yes, how to organize it correctly.
Now it looks like this
entities: {
[entityName]:{
[id]:value
}
}
Answer the question
In order to leave comments, you need to log in
https://github.com/paularmstrong/normalizr
https://github.com/reactjs/reselect
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question