4 ms·
Rendering becomes interruptible. In Concurrent Mode, React will split the work of a single render pass across multiple chunks as time exists within a single fra
by acemarke 7y ago
Rendering becomes interruptible. In Concurrent Mode, React will split the work of a single render pass across multiple chunks as time exists within a single frame, yielding back to the browser as needed to let it process events. Once the whole render pass is complete, React will finally "commit" the changes to the DOM.
If a user input or other render - triggering event occurs partway through a render pass, React can set aside its partially completed calculations, start a new render pass, complete that and commit it, then effectively "rebase" the original changes on top of the just-applied change.
Shawn Wang has been collecting links to all the info on Concurrent React that's been released over the last couple years :
https://github.com/sw-yx/concurrent-react-notes https://github.com/sw-yx/concurrent-react-notes