dillon1000/react

Commit

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.
Browse files
Changed paths3 files
First-parent comparison
M src/renderers/shared/fiber/ReactChildFiber.js ModifiedM src/renderers/shared/fiber/ReactFiber.js ModifiedM src/renderers/shared/fiber/__tests__/ReactTopLevelFragment-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…