(returnFiber, currentFirstChild)
| 8165 | } |
| 8166 | |
| 8167 | function deleteRemainingChildren(returnFiber, currentFirstChild) { |
| 8168 | if (!shouldTrackSideEffects) { |
| 8169 | // Noop. |
| 8170 | return null; |
| 8171 | } |
| 8172 | |
| 8173 | // TODO: For the shouldClone case, this could be micro-optimized a bit by |
| 8174 | // assuming that after the first child we've already added everything. |
| 8175 | var childToDelete = currentFirstChild; |
| 8176 | while (childToDelete !== null) { |
| 8177 | deleteChild(returnFiber, childToDelete); |
| 8178 | childToDelete = childToDelete.sibling; |
| 8179 | } |
| 8180 | return null; |
| 8181 | } |
| 8182 | |
| 8183 | function mapRemainingChildren(returnFiber, currentFirstChild) { |
| 8184 | // Add the remaining children to a temporary map so that we can find them by |
no test coverage detected