dillon1000/react
Commit
Browse files Transfer everything from Element onto the Fiber
This has a few benefits: 1) This allows the element to always remain on the young generation. 2) The key can be accessed on the fiber which is easier to keep as the same class and is directly accessible in the child reconciliation of every object. 3) This conveniently means that we don't have to create a fake element for continuations which was really hacky. We can still do the quick bailout of rerendered things using the props object which is also unique.
Changed paths5 files
First-parent comparisonsrc/renderers/shared/fiber/ReactFiber.js ModifiedM src/renderers/shared/fiber/ReactFiberBeginWork.js ModifiedM src/renderers/shared/fiber/ReactFiberCompleteWork.js ModifiedM src/renderers/shared/fiber/ReactReifiedYield.js ModifiedM src/renderers/shared/fiber/isomorphic/ReactCoroutine.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…