dillon1000/react
Commit
Browse files Add index field to each fiber
We use this to track the index slot that this Fiber had at reconciliation time. We will use this for two purposes: 1) We use it to quickly determine if a move is needed. 2) We also use it to model a sparce linked list, since we can have null/false/undefined in our child set and these take up a slot for the implicit key.
Changed paths3 files
First-parent comparisonsrc/renderers/shared/fiber/ReactChildFiber.js ModifiedM src/renderers/shared/fiber/ReactFiber.js ModifiedM src/renderers/shared/fiber/__tests__/ReactTopLevelFragment-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…