(current, workInProgress)
| 10578 | */ |
| 10579 | |
| 10580 | function bailoutOnAlreadyFinishedWork(current, workInProgress) { |
| 10581 | cancelWorkTimer(workInProgress); |
| 10582 | |
| 10583 | // TODO: We should ideally be able to bail out early if the children have no |
| 10584 | // more work to do. However, since we don't have a separation of this |
| 10585 | // Fiber's priority and its children yet - we don't know without doing lots |
| 10586 | // of the same work we do anyway. Once we have that separation we can just |
| 10587 | // bail out here if the children has no more work at this priority level. |
| 10588 | // if (workInProgress.priorityOfChildren <= priorityLevel) { |
| 10589 | // // If there are side-effects in these children that have not yet been |
| 10590 | // // committed we need to ensure that they get properly transferred up. |
| 10591 | // if (current && current.child !== workInProgress.child) { |
| 10592 | // reuseChildrenEffects(workInProgress, child); |
| 10593 | // } |
| 10594 | // return null; |
| 10595 | // } |
| 10596 | |
| 10597 | cloneChildFibers(current, workInProgress); |
| 10598 | return workInProgress.child; |
| 10599 | } |
| 10600 | |
| 10601 | function bailoutOnLowPriority(current, workInProgress) { |
| 10602 | cancelWorkTimer(workInProgress); |
no test coverage detected