Open utterances-bot opened 7 months ago
at 2.4, why use cloneChildFibers(). not directly retrun workInprogress.child?
“So for
,updateSlot() successfully reused 3 children, except the 4th one because current is span but we want b, thus fiber of span is created from scratch and fiber of b is deleted by deleteChild(). The newly created span is marked by placeChild().”@mattstyles64 thanks for pointing it out, this is clearly a mistake
@wk180 because we need to create new fiber tree?
How does React re-render internally?
If updates are triggered after mount, React re-renders with minimum DOM updates after diffing 2 versions of Fiber Tree.
https://jser.dev/2023-07-18-how-react-rerenders/