(returnFiber, current, element, expirationTime)
| 8351 | } |
| 8352 | |
| 8353 | function updateElement(returnFiber, current, element, expirationTime) { |
| 8354 | if (current !== null && current.type === element.type) { |
| 8355 | // Move based on index |
| 8356 | var existing = useFiber(current, element.props, expirationTime); |
| 8357 | existing.ref = coerceRef(returnFiber, current, element); |
| 8358 | existing['return'] = returnFiber; |
| 8359 | { |
| 8360 | existing._debugSource = element._source; |
| 8361 | existing._debugOwner = element._owner; |
| 8362 | } |
| 8363 | return existing; |
| 8364 | } else { |
| 8365 | // Insert |
| 8366 | var created = createFiberFromElement(element, returnFiber.mode, expirationTime); |
| 8367 | created.ref = coerceRef(returnFiber, current, element); |
| 8368 | created['return'] = returnFiber; |
| 8369 | return created; |
| 8370 | } |
| 8371 | } |
| 8372 | |
| 8373 | function updatePortal(returnFiber, current, portal, expirationTime) { |
| 8374 | if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { |
no test coverage detected