An Interest In:
Web News this Week
- March 22, 2024
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
March 19, 2022 02:27 pm GMT
Original Link: https://dev.to/porkbelly1/reconcilechildrenarray-2eni
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To