Hello there.
I have a chart based "List" view in my app(a SPA), where I am fetching 10000 data points( each record/point is a complex object ) at once. The component takes a few seconds, I guess, but the data is loaded in the view. But after refreshing( 'refresh' button in the List component ) the view quite some times and/or after loading the same resource for different parameters frequently, the app crashes, evidently due to memory issue.
Taking note of the memory using the task manager, while testing the above fact, it was found that memory kept on increasing until the app was crashed.
Any ideas/directions/suggestions on how to resolve it !?!
Use pagination ;)
@fzaninotto Thanks for the suggestion, but I am already done with the pagination as the specs are to make all the points appear in the same view. Do you think there can be any optimization done at core-level ??
Sure, write your own <Datagrid> based on one of the gazillion React Infinite Grid components.
@fzaninotto Hey thanks for that link. Also, do you think my issue could be related with the redux store ?
No idea, you should profile your code to know.
This might help you: https://marmelab.com/blog/2017/02/06/react-is-slow-react-is-fast.html