(fiber)
| 60 | requestIdleCallback(workLoop) |
| 61 | |
| 62 | function performUnitOfWork(fiber) { |
| 63 | const isFunctionComponent = fiber.type instanceof Function |
| 64 | if (isFunctionComponent) { |
| 65 | updateFunctionComponent(fiber) |
| 66 | } else { |
| 67 | updateHostComponent(fiber) |
| 68 | } |
| 69 | if (fiber.child) { |
| 70 | return fiber.child |
| 71 | } |
| 72 | let nextFiber = fiber |
| 73 | while (nextFiber) { |
| 74 | if (nextFiber.sibling) { |
| 75 | return nextFiber.sibling |
| 76 | } |
| 77 | nextFiber = nextFiber.return |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | let wipFiber = null |
| 82 | let stateHookIndex = null |
no test coverage detected