MCPcopy Create free account
hub / github.com/plotly/dash / invokeEffectsInDev

Function invokeEffectsInDev

dash/deps/react-dom@18.3.1.js:27386–27411  ·  view source on GitHub ↗
(firstChild, fiberFlags, invokeEffectFn)

Source from the content-addressed store, hash-verified

27384 }
27385
27386 function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) {
27387 {
27388 // We don't need to re-check StrictEffectsMode here.
27389 // This function is only called if that check has already passed.
27390 var current = firstChild;
27391 var subtreeRoot = null;
27392
27393 while (current !== null) {
27394 var primarySubtreeFlag = current.subtreeFlags & fiberFlags;
27395
27396 if (current !== subtreeRoot && current.child !== null && primarySubtreeFlag !== NoFlags) {
27397 current = current.child;
27398 } else {
27399 if ((current.flags & fiberFlags) !== NoFlags) {
27400 invokeEffectFn(current);
27401 }
27402
27403 if (current.sibling !== null) {
27404 current = current.sibling;
27405 } else {
27406 current = subtreeRoot = current.return;
27407 }
27408 }
27409 }
27410 }
27411 }
27412
27413 var didWarnStateUpdateForNotYetMountedComponent = null;
27414 function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…