dillon1000/react
Commit
Browse files Keep track of root insertion order in the renderer
Normally, Fibers have key or index which we'll use to match things up between reloads. However, roots don't have such a concept. We'll use their insertion order as an approximation. If it's consistent, we'll be able to restore the selection.
Changed paths1 file
First-parent comparisonsrc/backend/renderer.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…