DEV Community

porkBelly1
porkBelly1

Posted on

reconcileChildrenArray

if (oldFiber.index > newIdx) {
nextOldFiber = oldFiber;
oldFiber = null;
}

what the meaning of the if branch above? Shouldn't it always be oldFiber.index === newIdx?
So I think this branch should be deleting

Top comments (1)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.