From 52878f5c6bb84a60927d521f24745ef42c550676 Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Mon, 16 Sep 2024 12:07:14 -0700 Subject: [PATCH] Remove execution context check from shouldProfile (#30971) I don't know why this is here since all these callsites are within the CommitWork/CommitEffects helpers. This should help with inlining. DiffTrain build for commit https://github.com/facebook/react/commit/8152e5cd27721e792f395c0b62c8a7769a54777a. --- compiled-rn/VERSION_NATIVE_FB | 2 +- .../cjs/ReactTestRenderer-dev.js | 112 ++++++++--------- .../cjs/ReactTestRenderer-prod.js | 8 +- .../cjs/ReactTestRenderer-profiling.js | 78 ++++++------ .../vendor/react/react/cjs/React-dev.js | 4 +- .../vendor/react/react/cjs/React-prod.js | 4 +- .../vendor/react/react/cjs/React-profiling.js | 4 +- .../Libraries/Renderer/REVISION | 2 +- .../implementations/ReactFabric-dev.fb.js | 112 ++++++++--------- .../implementations/ReactFabric-prod.fb.js | 6 +- .../ReactFabric-profiling.fb.js | 78 ++++++------ .../ReactNativeRenderer-dev.fb.js | 116 ++++++++---------- .../ReactNativeRenderer-prod.fb.js | 10 +- .../ReactNativeRenderer-profiling.fb.js | 82 ++++++------- 14 files changed, 291 insertions(+), 327 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index 6303b2bb945b6..4befa0872daac 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.0.0-native-fb-26855e46-20240916 \ No newline at end of file +19.0.0-native-fb-8152e5cd-20240916 \ No newline at end of file diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js index 4cdbc2f0761ae..5d5e1b4ebd506 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<13016889a9d577c3ebecd5eeb820686d>> */ "use strict"; @@ -8512,10 +8512,7 @@ __DEV__ && } } function shouldProfile$1(current) { - return ( - 0 !== (current.mode & 2) && - (executionContext & CommitContext) !== NoContext - ); + return 0 !== (current.mode & 2); } function commitHookLayoutEffects(finishedWork, hookFlags) { shouldProfile$1(finishedWork) @@ -8897,26 +8894,6 @@ __DEV__ && commitTime ); } - function commitProfilerUpdate( - finishedWork, - current, - commitTime, - effectDuration - ) { - if (executionContext & CommitContext) - try { - runWithFiberInDEV( - finishedWork, - commitProfiler, - finishedWork, - current, - commitTime, - effectDuration - ); - } catch (error$20) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$20); - } - } function commitProfilerPostCommitImpl( finishedWork, current, @@ -9046,12 +9023,6 @@ __DEV__ && ); } } - function shouldProfile(current) { - return ( - 0 !== (current.mode & 2) && - (executionContext & CommitContext) !== NoContext - ); - } function commitBeforeMutationEffects(root, firstChild) { for (nextEffect = firstChild; null !== nextEffect; ) if ( @@ -9234,14 +9205,26 @@ __DEV__ && break; case 12: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - if (flags & 4) - a: for ( - flags = finishedWork.stateNode.effectDuration, - commitProfilerUpdate(finishedWork, current, commitTime, flags), - finishedWork = finishedWork.return; - null !== finishedWork; - - ) { + if (flags & 4) { + flags = finishedWork.stateNode.effectDuration; + try { + runWithFiberInDEV( + finishedWork, + commitProfiler, + finishedWork, + current, + commitTime, + flags + ); + } catch (error$20) { + captureCommitPhaseError( + finishedWork, + finishedWork.return, + error$20 + ); + } + finishedWork = finishedWork.return; + a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { case 3: finishedWork.stateNode.effectDuration += flags; @@ -9252,6 +9235,7 @@ __DEV__ && } finishedWork = finishedWork.return; } + } break; case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); @@ -9438,7 +9422,7 @@ __DEV__ && : offscreenSubtreeWasHidden || (tag & Layout) === NoFlags || (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (inst.destroy = void 0), runWithFiberInDEV( @@ -9608,7 +9592,7 @@ __DEV__ && finishedWork.return ), commitHookEffectListMount(Insertion | HasEffect, finishedWork), - shouldProfile(finishedWork) + 0 !== (finishedWork.mode & 2) ? (startLayoutEffectTimer(), commitHookEffectListUnmount( Layout | HasEffect, @@ -9895,7 +9879,7 @@ __DEV__ && case 11: case 14: case 15: - if (shouldProfile(finishedWork)) + if (0 !== (finishedWork.mode & 2)) try { startLayoutEffectTimer(), commitHookEffectListUnmount( @@ -10013,20 +9997,27 @@ __DEV__ && finishedWork, includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & 4) - a: for ( - includeWorkInProgressEffects = - finishedWork.stateNode.effectDuration, - commitProfilerUpdate( - finishedWork, - current, - commitTime, - includeWorkInProgressEffects - ), - finishedWork = finishedWork.return; - null !== finishedWork; - - ) { + if (includeWorkInProgressEffects && flags & 4) { + includeWorkInProgressEffects = + finishedWork.stateNode.effectDuration; + try { + runWithFiberInDEV( + finishedWork, + commitProfiler, + finishedWork, + current, + commitTime, + includeWorkInProgressEffects + ); + } catch (error$20) { + captureCommitPhaseError( + finishedWork, + finishedWork.return, + error$20 + ); + } + finishedWork = finishedWork.return; + a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { case 3: finishedWork.stateNode.effectDuration += @@ -10039,6 +10030,7 @@ __DEV__ && } finishedWork = finishedWork.return; } + } break; case 13: recursivelyTraverseReappearLayoutEffects( @@ -10161,7 +10153,7 @@ __DEV__ && committedLanes, committedTransitions ); - if (flags & 2048 && executionContext & CommitContext) { + if (flags & 2048) { finishedRoot = finishedWork.stateNode.passiveEffectDuration; try { runWithFiberInDEV( @@ -15131,11 +15123,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916" + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15280,5 +15272,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.0.0-native-fb-26855e46-20240916"; + exports.version = "19.0.0-native-fb-8152e5cd-20240916"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js index 58fd5c263b267..45e1d0edfa403 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -9494,14 +9494,14 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1266 = { bundleType: 0, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function (mockNode) { mockNode = nodeToInstanceMap.get(mockNode); return void 0 !== mockNode ? mockNode.internalInstanceHandle : null; }, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916" + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1267 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -9637,4 +9637,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.0.0-native-fb-26855e46-20240916"; +exports.version = "19.0.0-native-fb-8152e5cd-20240916"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js index 63710a1badef3..b47c0cb9d7577 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<7fc82ac71e4522bb6e3dcfef512e6ba4>> */ "use strict"; @@ -6408,7 +6408,7 @@ function unwindInterruptedWork(current, interruptedWork) { } } function shouldProfile$1(current) { - return 0 !== (current.mode & 2) && 0 !== (executionContext & 4); + return 0 !== (current.mode & 2); } function commitHookLayoutEffects(finishedWork, hookFlags) { shouldProfile$1(finishedWork) @@ -6641,33 +6641,32 @@ function commitProfilerUpdate( commitTime, effectDuration ) { - if (executionContext & 4) - try { - var _finishedWork$memoize = finishedWork.memoizedProps, - id = _finishedWork$memoize.id, - onCommit = _finishedWork$memoize.onCommit, - onRender = _finishedWork$memoize.onRender; - current = null === current ? "mount" : "update"; - currentUpdateIsNested && (current = "nested-update"); - "function" === typeof onRender && - onRender( - id, - current, - finishedWork.actualDuration, - finishedWork.treeBaseDuration, - finishedWork.actualStartTime, - commitTime - ); - "function" === typeof onCommit && - onCommit( - finishedWork.memoizedProps.id, - current, - effectDuration, - commitTime - ); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } + try { + var _finishedWork$memoize = finishedWork.memoizedProps, + id = _finishedWork$memoize.id, + onCommit = _finishedWork$memoize.onCommit, + onRender = _finishedWork$memoize.onRender; + current = null === current ? "mount" : "update"; + currentUpdateIsNested && (current = "nested-update"); + "function" === typeof onRender && + onRender( + id, + current, + finishedWork.actualDuration, + finishedWork.treeBaseDuration, + finishedWork.actualStartTime, + commitTime + ); + "function" === typeof onCommit && + onCommit( + finishedWork.memoizedProps.id, + current, + effectDuration, + commitTime + ); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } } function isHostParent(fiber) { return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag; @@ -6722,11 +6721,8 @@ function insertOrAppendPlacementNode(node, before, parent) { var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, - nextEffect = null; -function shouldProfile(current) { - return 0 !== (current.mode & 2) && 0 !== (executionContext & 4); -} -var shouldFireAfterActiveInstanceBlur = !1; + nextEffect = null, + shouldFireAfterActiveInstanceBlur = !1; function commitBeforeMutationEffects(root, firstChild) { for (nextEffect = firstChild; null !== nextEffect; ) if ( @@ -7076,7 +7072,7 @@ function commitDeletionEffectsOnFiber( : offscreenSubtreeWasHidden || 0 === (prevHostParent & 4) || (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (prevHostParentIsContainer.destroy = void 0), safelyCallDestroy( @@ -7237,7 +7233,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags & 4 && (commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork), - shouldProfile(finishedWork) + 0 !== (finishedWork.mode & 2) ? (startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return), recordLayoutEffectDuration(finishedWork)) @@ -7488,7 +7484,7 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) { case 11: case 14: case 15: - if (shouldProfile(finishedWork)) + if (0 !== (finishedWork.mode & 2)) try { startLayoutEffectTimer(), commitHookEffectListUnmount(4, finishedWork, finishedWork.return); @@ -7726,7 +7722,7 @@ function commitPassiveMountOnFiber( committedLanes, committedTransitions ); - if (flags & 2048 && executionContext & 4) { + if (flags & 2048) { finishedRoot = finishedWork.stateNode.passiveEffectDuration; try { var _finishedWork$memoize2 = finishedWork.memoizedProps, @@ -10066,14 +10062,14 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1144 = { bundleType: 0, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function (mockNode) { mockNode = nodeToInstanceMap.get(mockNode); return void 0 !== mockNode ? mockNode.internalInstanceHandle : null; }, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916", + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$137 = 0; @@ -10224,4 +10220,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.0.0-native-fb-26855e46-20240916"; +exports.version = "19.0.0-native-fb-8152e5cd-20240916"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js index 67d1a8492d688..bdf230f85e53f 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<9ce358f642b86db9f91ce63a7dcd60f9>> + * @generated SignedSource<<0c34ac3854c67a4990581bb7b17687fb>> */ "use strict"; @@ -1705,7 +1705,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-native-fb-26855e46-20240916"; + exports.version = "19.0.0-native-fb-8152e5cd-20240916"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js index 2bc77970126e2..b82aee456e2ef 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<8a09862012c6a1c9f316ab31e188ba71>> */ "use strict"; @@ -580,4 +580,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-native-fb-26855e46-20240916"; +exports.version = "19.0.0-native-fb-8152e5cd-20240916"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js index 3aa4b0b24ee54..21235a714f636 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<8c1789d2f2a99a0dd61d496b9005042d>> + * @generated SignedSource<<9246def247ac5ed57c1f627f4755384d>> */ "use strict"; @@ -584,7 +584,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-native-fb-26855e46-20240916"; +exports.version = "19.0.0-native-fb-8152e5cd-20240916"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION index 8139407601660..4e8ccbbea4549 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION @@ -1 +1 @@ -26855e4680dedb21f2c73a069ed691822a242db1 +8152e5cd27721e792f395c0b62c8a7769a54777a diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js index 77bd05fe7d562..11a38637154b8 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<94110efa689aec012b44989bfbe6dea0>> + * @generated SignedSource<<63b2d7676fab557c4199c7b5e5984d64>> */ "use strict"; @@ -9848,10 +9848,7 @@ __DEV__ && } } function shouldProfile$1(current) { - return ( - 0 !== (current.mode & 2) && - (executionContext & CommitContext) !== NoContext - ); + return 0 !== (current.mode & 2); } function commitHookLayoutEffects(finishedWork, hookFlags) { shouldProfile$1(finishedWork) @@ -10240,26 +10237,6 @@ __DEV__ && commitTime ); } - function commitProfilerUpdate( - finishedWork, - current, - commitTime, - effectDuration - ) { - if (executionContext & CommitContext) - try { - runWithFiberInDEV( - finishedWork, - commitProfiler, - finishedWork, - current, - commitTime, - effectDuration - ); - } catch (error$21) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$21); - } - } function commitProfilerPostCommitImpl( finishedWork, current, @@ -10314,12 +10291,6 @@ __DEV__ && captureCommitPhaseError(finishedWork, finishedWork.return, error$26); } } - function shouldProfile(current) { - return ( - 0 !== (current.mode & 2) && - (executionContext & CommitContext) !== NoContext - ); - } function commitBeforeMutationEffects(root, firstChild) { for (nextEffect = firstChild; null !== nextEffect; ) if ( @@ -10500,14 +10471,26 @@ __DEV__ && break; case 12: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - if (flags & 4) - a: for ( - flags = finishedWork.stateNode.effectDuration, - commitProfilerUpdate(finishedWork, current, commitTime, flags), - finishedWork = finishedWork.return; - null !== finishedWork; - - ) { + if (flags & 4) { + flags = finishedWork.stateNode.effectDuration; + try { + runWithFiberInDEV( + finishedWork, + commitProfiler, + finishedWork, + current, + commitTime, + flags + ); + } catch (error$21) { + captureCommitPhaseError( + finishedWork, + finishedWork.return, + error$21 + ); + } + finishedWork = finishedWork.return; + a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { case 3: finishedWork.stateNode.effectDuration += flags; @@ -10518,6 +10501,7 @@ __DEV__ && } finishedWork = finishedWork.return; } + } break; case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); @@ -10673,7 +10657,7 @@ __DEV__ && : offscreenSubtreeWasHidden || (tag & Layout) === NoFlags || (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (inst.destroy = void 0), safelyCallDestroy( @@ -10713,7 +10697,7 @@ __DEV__ && )) : (tag & Layout) !== NoFlags && (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (inst.destroy = void 0), safelyCallDestroy( @@ -10869,7 +10853,7 @@ __DEV__ && finishedWork.return ), commitHookEffectListMount(Insertion | HasEffect, finishedWork), - shouldProfile(finishedWork) + 0 !== (finishedWork.mode & 2) ? (startLayoutEffectTimer(), commitHookEffectListUnmount( Layout | HasEffect, @@ -11065,7 +11049,7 @@ __DEV__ && case 11: case 14: case 15: - if (shouldProfile(finishedWork)) + if (0 !== (finishedWork.mode & 2)) try { startLayoutEffectTimer(), commitHookEffectListUnmount( @@ -11183,20 +11167,27 @@ __DEV__ && finishedWork, includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & 4) - a: for ( - includeWorkInProgressEffects = - finishedWork.stateNode.effectDuration, - commitProfilerUpdate( - finishedWork, - current, - commitTime, - includeWorkInProgressEffects - ), - finishedWork = finishedWork.return; - null !== finishedWork; - - ) { + if (includeWorkInProgressEffects && flags & 4) { + includeWorkInProgressEffects = + finishedWork.stateNode.effectDuration; + try { + runWithFiberInDEV( + finishedWork, + commitProfiler, + finishedWork, + current, + commitTime, + includeWorkInProgressEffects + ); + } catch (error$21) { + captureCommitPhaseError( + finishedWork, + finishedWork.return, + error$21 + ); + } + finishedWork = finishedWork.return; + a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { case 3: finishedWork.stateNode.effectDuration += @@ -11209,6 +11200,7 @@ __DEV__ && } finishedWork = finishedWork.return; } + } break; case 13: recursivelyTraverseReappearLayoutEffects( @@ -11331,7 +11323,7 @@ __DEV__ && committedLanes, committedTransitions ); - if (flags & 2048 && executionContext & CommitContext) { + if (flags & 2048) { finishedRoot = finishedWork.stateNode.passiveEffectDuration; try { runWithFiberInDEV( @@ -17180,11 +17172,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916" + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js index cace83cabc641..c40be0617965f 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<35b97888ec5934d768b55cac672dae72>> + * @generated SignedSource<<0f1e9dd4d393e435494cb2f4c8f3e2bf>> */ "use strict"; @@ -11085,11 +11085,11 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1164 = { bundleType: 0, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916" + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1164.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js index 51f199ac3b527..fdaa7f549c1ff 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<6b5422f356f17af242b14cfdec99ef35>> */ "use strict"; @@ -8117,7 +8117,7 @@ function unwindInterruptedWork(current, interruptedWork) { } } function shouldProfile$1(current) { - return 0 !== (current.mode & 2) && 0 !== (executionContext & 4); + return 0 !== (current.mode & 2); } function commitHookLayoutEffects(finishedWork, hookFlags) { shouldProfile$1(finishedWork) @@ -8350,33 +8350,32 @@ function commitProfilerUpdate( commitTime, effectDuration ) { - if (executionContext & 4) - try { - var _finishedWork$memoize = finishedWork.memoizedProps, - id = _finishedWork$memoize.id, - onCommit = _finishedWork$memoize.onCommit, - onRender = _finishedWork$memoize.onRender; - current = null === current ? "mount" : "update"; - currentUpdateIsNested && (current = "nested-update"); - "function" === typeof onRender && - onRender( - id, - current, - finishedWork.actualDuration, - finishedWork.treeBaseDuration, - finishedWork.actualStartTime, - commitTime - ); - "function" === typeof onCommit && - onCommit( - finishedWork.memoizedProps.id, - current, - effectDuration, - commitTime - ); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } + try { + var _finishedWork$memoize = finishedWork.memoizedProps, + id = _finishedWork$memoize.id, + onCommit = _finishedWork$memoize.onCommit, + onRender = _finishedWork$memoize.onRender; + current = null === current ? "mount" : "update"; + currentUpdateIsNested && (current = "nested-update"); + "function" === typeof onRender && + onRender( + id, + current, + finishedWork.actualDuration, + finishedWork.treeBaseDuration, + finishedWork.actualStartTime, + commitTime + ); + "function" === typeof onCommit && + onCommit( + finishedWork.memoizedProps.id, + current, + effectDuration, + commitTime + ); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } } function commitHostMount(finishedWork) { try { @@ -8405,11 +8404,8 @@ var offscreenSubtreeIsHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, inProgressLanes = null, - inProgressRoot = null; -function shouldProfile(current) { - return 0 !== (current.mode & 2) && 0 !== (executionContext & 4); -} -var shouldFireAfterActiveInstanceBlur = !1; + inProgressRoot = null, + shouldFireAfterActiveInstanceBlur = !1; function commitBeforeMutationEffects(root, firstChild) { for (nextEffect = firstChild; null !== nextEffect; ) if ( @@ -8734,7 +8730,7 @@ function commitDeletionEffectsOnFiber( : offscreenSubtreeWasHidden || 0 === (tag & 4) || (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (inst.destroy = void 0), safelyCallDestroy( @@ -8774,7 +8770,7 @@ function commitDeletionEffectsOnFiber( )) : 0 !== (tag & 4) && (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (inst.destroy = void 0), safelyCallDestroy( @@ -8925,7 +8921,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags & 4 && (commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork), - shouldProfile(finishedWork) + 0 !== (finishedWork.mode & 2) ? (startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return), recordLayoutEffectDuration(finishedWork)) @@ -9091,7 +9087,7 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) { case 11: case 14: case 15: - if (shouldProfile(finishedWork)) + if (0 !== (finishedWork.mode & 2)) try { startLayoutEffectTimer(), commitHookEffectListUnmount(4, finishedWork, finishedWork.return); @@ -9333,7 +9329,7 @@ function commitPassiveMountOnFiber( committedLanes, committedTransitions ); - if (flags & 2048 && executionContext & 4) { + if (flags & 2048) { finishedRoot = finishedWork.stateNode.passiveEffectDuration; try { var _finishedWork$memoize2 = finishedWork.memoizedProps, @@ -11759,11 +11755,11 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1252 = { bundleType: 0, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916" + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1252.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js index e9caca5a38fd4..38ae18e13cb66 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<02e9cb6c4174900354c30ca6c86cdad1>> + * @generated SignedSource<<23117d58ad93d90dbc0e4fd2542a2438>> */ "use strict"; @@ -9897,10 +9897,7 @@ __DEV__ && } } function shouldProfile$1(current) { - return ( - 0 !== (current.mode & 2) && - (executionContext & CommitContext) !== NoContext - ); + return 0 !== (current.mode & 2); } function commitHookLayoutEffects(finishedWork, hookFlags) { shouldProfile$1(finishedWork) @@ -10289,26 +10286,6 @@ __DEV__ && commitTime ); } - function commitProfilerUpdate( - finishedWork, - current, - commitTime, - effectDuration - ) { - if (executionContext & CommitContext) - try { - runWithFiberInDEV( - finishedWork, - commitProfiler, - finishedWork, - current, - commitTime, - effectDuration - ); - } catch (error$21) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$21); - } - } function commitProfilerPostCommitImpl( finishedWork, current, @@ -10486,12 +10463,6 @@ __DEV__ && ); } } - function shouldProfile(current) { - return ( - 0 !== (current.mode & 2) && - (executionContext & CommitContext) !== NoContext - ); - } function commitBeforeMutationEffects(root, firstChild) { for (nextEffect = firstChild; null !== nextEffect; ) if ( @@ -10672,14 +10643,26 @@ __DEV__ && break; case 12: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - if (flags & 4) - a: for ( - flags = finishedWork.stateNode.effectDuration, - commitProfilerUpdate(finishedWork, current, commitTime, flags), - finishedWork = finishedWork.return; - null !== finishedWork; - - ) { + if (flags & 4) { + flags = finishedWork.stateNode.effectDuration; + try { + runWithFiberInDEV( + finishedWork, + commitProfiler, + finishedWork, + current, + commitTime, + flags + ); + } catch (error$21) { + captureCommitPhaseError( + finishedWork, + finishedWork.return, + error$21 + ); + } + finishedWork = finishedWork.return; + a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { case 3: finishedWork.stateNode.effectDuration += flags; @@ -10690,6 +10673,7 @@ __DEV__ && } finishedWork = finishedWork.return; } + } break; case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); @@ -10888,7 +10872,7 @@ __DEV__ && : offscreenSubtreeWasHidden || (tag & Layout) === NoFlags || (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (inst.destroy = void 0), safelyCallDestroy( @@ -10929,7 +10913,7 @@ __DEV__ && )) : (tag & Layout) !== NoFlags && (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (inst.destroy = void 0), safelyCallDestroy( @@ -11113,7 +11097,7 @@ __DEV__ && finishedWork.return ), commitHookEffectListMount(Insertion | HasEffect, finishedWork), - shouldProfile(finishedWork) + 0 !== (finishedWork.mode & 2) ? (startLayoutEffectTimer(), commitHookEffectListUnmount( Layout | HasEffect, @@ -11421,7 +11405,7 @@ __DEV__ && case 11: case 14: case 15: - if (shouldProfile(finishedWork)) + if (0 !== (finishedWork.mode & 2)) try { startLayoutEffectTimer(), commitHookEffectListUnmount( @@ -11539,20 +11523,27 @@ __DEV__ && finishedWork, includeWorkInProgressEffects ); - if (includeWorkInProgressEffects && flags & 4) - a: for ( - includeWorkInProgressEffects = - finishedWork.stateNode.effectDuration, - commitProfilerUpdate( - finishedWork, - current, - commitTime, - includeWorkInProgressEffects - ), - finishedWork = finishedWork.return; - null !== finishedWork; - - ) { + if (includeWorkInProgressEffects && flags & 4) { + includeWorkInProgressEffects = + finishedWork.stateNode.effectDuration; + try { + runWithFiberInDEV( + finishedWork, + commitProfiler, + finishedWork, + current, + commitTime, + includeWorkInProgressEffects + ); + } catch (error$21) { + captureCommitPhaseError( + finishedWork, + finishedWork.return, + error$21 + ); + } + finishedWork = finishedWork.return; + a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { case 3: finishedWork.stateNode.effectDuration += @@ -11565,6 +11556,7 @@ __DEV__ && } finishedWork = finishedWork.return; } + } break; case 13: recursivelyTraverseReappearLayoutEffects( @@ -11687,7 +11679,7 @@ __DEV__ && committedLanes, committedTransitions ); - if (flags & 2048 && executionContext & CommitContext) { + if (flags & 2048) { finishedRoot = finishedWork.stateNode.passiveEffectDuration; try { runWithFiberInDEV( @@ -17406,11 +17398,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.0.0-native-fb-26855e46-20240916" !== isomorphicReactPackageVersion) + if ("19.0.0-native-fb-8152e5cd-20240916" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-26855e46-20240916\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-8152e5cd-20240916\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -17436,11 +17428,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromTag, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916" + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js index 37e27d4a8e833..22f004cac8f10 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<4238ec53db349d3f2f5de656b710af95>> + * @generated SignedSource<<7f9d81a96736287df47986d06a12a700>> */ "use strict"; @@ -11213,11 +11213,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.0.0-native-fb-26855e46-20240916" !== isomorphicReactPackageVersion) +if ("19.0.0-native-fb-8152e5cd-20240916" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-26855e46-20240916\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-8152e5cd-20240916\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11266,11 +11266,11 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1230 = { bundleType: 0, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromTag, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916" + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1230.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js index 4d00cc80558d8..a167804d79153 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<90f19a5cc8fa3fe1e0318cf560bc34ef>> + * @generated SignedSource<> */ "use strict"; @@ -8238,7 +8238,7 @@ function unwindInterruptedWork(current, interruptedWork) { } } function shouldProfile$1(current) { - return 0 !== (current.mode & 2) && 0 !== (executionContext & 4); + return 0 !== (current.mode & 2); } function commitHookLayoutEffects(finishedWork, hookFlags) { shouldProfile$1(finishedWork) @@ -8471,33 +8471,32 @@ function commitProfilerUpdate( commitTime, effectDuration ) { - if (executionContext & 4) - try { - var _finishedWork$memoize = finishedWork.memoizedProps, - id = _finishedWork$memoize.id, - onCommit = _finishedWork$memoize.onCommit, - onRender = _finishedWork$memoize.onRender; - current = null === current ? "mount" : "update"; - currentUpdateIsNested && (current = "nested-update"); - "function" === typeof onRender && - onRender( - id, - current, - finishedWork.actualDuration, - finishedWork.treeBaseDuration, - finishedWork.actualStartTime, - commitTime - ); - "function" === typeof onCommit && - onCommit( - finishedWork.memoizedProps.id, - current, - effectDuration, - commitTime - ); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } + try { + var _finishedWork$memoize = finishedWork.memoizedProps, + id = _finishedWork$memoize.id, + onCommit = _finishedWork$memoize.onCommit, + onRender = _finishedWork$memoize.onRender; + current = null === current ? "mount" : "update"; + currentUpdateIsNested && (current = "nested-update"); + "function" === typeof onRender && + onRender( + id, + current, + finishedWork.actualDuration, + finishedWork.treeBaseDuration, + finishedWork.actualStartTime, + commitTime + ); + "function" === typeof onCommit && + onCommit( + finishedWork.memoizedProps.id, + current, + effectDuration, + commitTime + ); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } } function isHostParent(fiber) { return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag; @@ -8606,11 +8605,8 @@ var offscreenSubtreeIsHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, inProgressLanes = null, - inProgressRoot = null; -function shouldProfile(current) { - return 0 !== (current.mode & 2) && 0 !== (executionContext & 4); -} -var shouldFireAfterActiveInstanceBlur = !1; + inProgressRoot = null, + shouldFireAfterActiveInstanceBlur = !1; function commitBeforeMutationEffects(root, firstChild) { for (nextEffect = firstChild; null !== nextEffect; ) if ( @@ -8985,7 +8981,7 @@ function commitDeletionEffectsOnFiber( : offscreenSubtreeWasHidden || 0 === (index & 4) || (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (prevHostParent.destroy = void 0), safelyCallDestroy( @@ -9024,7 +9020,7 @@ function commitDeletionEffectsOnFiber( )) : 0 !== (index & 4) && (markComponentLayoutEffectUnmountStarted(deletedFiber), - shouldProfile(deletedFiber) + 0 !== (deletedFiber.mode & 2) ? (startLayoutEffectTimer(), (prevHostParent.destroy = void 0), safelyCallDestroy( @@ -9202,7 +9198,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { flags & 4 && (commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork), - shouldProfile(finishedWork) + 0 !== (finishedWork.mode & 2) ? (startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return), recordLayoutEffectDuration(finishedWork)) @@ -9524,7 +9520,7 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) { case 11: case 14: case 15: - if (shouldProfile(finishedWork)) + if (0 !== (finishedWork.mode & 2)) try { startLayoutEffectTimer(), commitHookEffectListUnmount(4, finishedWork, finishedWork.return); @@ -9762,7 +9758,7 @@ function commitPassiveMountOnFiber( committedLanes, committedTransitions ); - if (flags & 2048 && executionContext & 4) { + if (flags & 2048) { finishedRoot = finishedWork.stateNode.passiveEffectDuration; try { var _finishedWork$memoize2 = finishedWork.memoizedProps, @@ -11888,11 +11884,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.0.0-native-fb-26855e46-20240916" !== isomorphicReactPackageVersion) +if ("19.0.0-native-fb-8152e5cd-20240916" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-26855e46-20240916\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-8152e5cd-20240916\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11941,11 +11937,11 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1318 = { bundleType: 0, - version: "19.0.0-native-fb-26855e46-20240916", + version: "19.0.0-native-fb-8152e5cd-20240916", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromTag, - reconcilerVersion: "19.0.0-native-fb-26855e46-20240916" + reconcilerVersion: "19.0.0-native-fb-8152e5cd-20240916" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1318.rendererConfig = extraDevToolsConfig);