(fiber: Fiber, pendingProps: mixed)
| 481 | } |
| 482 | |
| 483 | function useFiber(fiber: Fiber, pendingProps: mixed): Fiber { |
| 484 | // We currently set sibling to null and index to 0 here because it is easy |
| 485 | // to forget to do before returning it. E.g. for the single child case. |
| 486 | const clone = createWorkInProgress(fiber, pendingProps); |
| 487 | clone.index = 0; |
| 488 | clone.sibling = null; |
| 489 | return clone; |
| 490 | } |
| 491 | |
| 492 | function placeChild( |
| 493 | newFiber: Fiber, |
no test coverage detected