MCPcopy Create free account
hub / github.com/microsoft/SandDance / scheduleWorkOnFiber

Function scheduleWorkOnFiber

docs/external/js/react-dom.development.js:18009–18021  ·  view source on GitHub ↗
(fiber, renderExpirationTime)

Source from the content-addressed store, hash-verified

18007 }
18008
18009 function scheduleWorkOnFiber(fiber, renderExpirationTime) {
18010 if (fiber.expirationTime < renderExpirationTime) {
18011 fiber.expirationTime = renderExpirationTime;
18012 }
18013
18014 var alternate = fiber.alternate;
18015
18016 if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
18017 alternate.expirationTime = renderExpirationTime;
18018 }
18019
18020 scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
18021 }
18022
18023 function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
18024 // Mark any Suspense boundaries with fallbacks as having work to do.

Callers 1

Calls 1

scheduleWorkOnParentPathFunction · 0.85

Tested by

no test coverage detected