(firstChild, fiberFlags, invokeEffectFn)
| 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) { |
no outgoing calls
no test coverage detected
searching dependent graphs…