Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 19, 2022 02:27 pm GMT

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


Original Link: https://dev.to/porkbelly1/reconcilechildrenarray-2eni

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To