Let's say I have a very large, thrashing update that is incoming to a React.js app. Some action opens up a very large table detailing thousands of rows fetched from the server. With that, the following occurs:
- Dispatch to server - I want data
- Data for all of the rows are returned.
- Local datastore is updated with all data
- From an empty table with no rows, React injects thousands of new rows and columns into the table, causing (in many cases) a browser lockup.
Does anyone have any ideas as to how I might be able to mitigate this situation? Does React have any lazy or more performant painting strategies (i.e. paint when more idle: only render so much per tick)?