dillon1000/react

Commit

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.
Browse files
Changed paths1 file
First-parent comparison
M src/backend/renderer.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…