MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / bailoutOnAlreadyFinishedWork

Function bailoutOnAlreadyFinishedWork

code/composition/public/app.js:10580–10599  ·  view source on GitHub ↗
(current, workInProgress)

Source from the content-addressed store, hash-verified

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);

Callers 9

updateFragmentFunction · 0.70
updateModeFunction · 0.70
finishClassComponentFunction · 0.70
updateHostRootFunction · 0.70
updateHostComponentFunction · 0.70
updatePortalComponentFunction · 0.70
updateContextProviderFunction · 0.70
updateContextConsumerFunction · 0.70

Calls 2

cancelWorkTimerFunction · 0.70
cloneChildFibersFunction · 0.70

Tested by

no test coverage detected