admin管理员组文章数量:1387293
In my application built on React and Redux, one of the pages needs to render a table with large amount of data (2k rows). On the initial page load, everything is fine. After the page gets rendered and I try to navigates to another page by clicking on sidebar, I notice there's a delay between my click and the next page starts to render. The delay only happens in page render, but doesn't happen in url - url gets updated immediately when I click on sidebar.
In addition, when I try to navigate back to the page that renders large table, the delay still happens.
According to my research, this rendering delay is proportional to numbers of items shown in the table. The more items, the longer delay.
I wonder if anyone has run into this issue before, and if there's any fix to that?
Thanks.
In my application built on React and Redux, one of the pages needs to render a table with large amount of data (2k rows). On the initial page load, everything is fine. After the page gets rendered and I try to navigates to another page by clicking on sidebar, I notice there's a delay between my click and the next page starts to render. The delay only happens in page render, but doesn't happen in url - url gets updated immediately when I click on sidebar.
In addition, when I try to navigate back to the page that renders large table, the delay still happens.
According to my research, this rendering delay is proportional to numbers of items shown in the table. The more items, the longer delay.
I wonder if anyone has run into this issue before, and if there's any fix to that?
Thanks.
Share Improve this question asked Dec 29, 2016 at 21:55 KelvinKelvin 7232 gold badges10 silver badges13 bronze badges1 Answer
Reset to default 5Use virtualised table to render *large amount of data.
https://github./bvaughn/react-virtualized
本文标签: javascriptRendering large tables in React amp Redux app causes performance issuesStack Overflow
版权声明:本文标题:javascript - Rendering large tables in React & Redux app causes performance issues - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744566966a2613107.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论