MCPcopy Index your code
hub / github.com/microsoft/SandDance / commitPassiveHookEffects

Function commitPassiveHookEffects

docs/external/js/react-dom.development.js:19892–19909  ·  view source on GitHub ↗
(finishedWork)

Source from the content-addressed store, hash-verified

19890 }
19891
19892 function commitPassiveHookEffects(finishedWork) {
19893 if ((finishedWork.effectTag & Passive) !== NoEffect) {
19894 switch (finishedWork.tag) {
19895 case FunctionComponent:
19896 case ForwardRef:
19897 case SimpleMemoComponent:
19898 case Block:
19899 {
19900 // TODO (#17945) We should call all passive destroy functions (for all fibers)
19901 // before calling any create functions. The current approach only serializes
19902 // these for a single fiber.
19903 commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork);
19904 commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
19905 break;
19906 }
19907 }
19908 }
19909 }
19910
19911 function commitLifeCycles(finishedRoot, current, finishedWork, committedExpirationTime) {
19912 switch (finishedWork.tag) {

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected