News for hackers. Stuff that matters.
Re:React Concurrent Mode by Geee on Thursday October 24, 2019 @06:38PM (#21349923)
You can make it happen by rendering all components first as 'null' or placeholder <div> and pushing them on a queue. Then loop the queue with requestAnimationFrame() and set a batch of components visible for every frame. You can give each component a cost so that each batch will fit in a frame. It's basically a simple component that you can wrap around components that you wish to render in the queue. I have been using a solution like this for a long time in production and it works great.

You can combine this with virtualization if you have lots of non-visible components.

Re:React Concurrent Mode by _bxg1 on Thursday October 24, 2019 @11:38PM (#21351649)
We've done a bit of that, but at that point you're just rolling your own, highly-stateful version of Concurrent Mode.