diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index d875b94a9b862..9f3ab8274a512 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.1.0-native-fb-f5077bcc-20241217 \ No newline at end of file +19.1.0-native-fb-facec3ee-20241217 \ No newline at end of file diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js index 48f102f49915e..964dd1d895bc2 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<5f71600380649b875c0a51a31e58dff5>> */ "use strict"; @@ -420,5 +420,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-native-fb-f5077bcc-20241217"; + exports.version = "19.1.0-native-fb-facec3ee-20241217"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js index 7153b37ec4084..944ca96c86caf 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<323e70fc16467db46e17fe533bfb2594>> + * @generated SignedSource<> */ "use strict"; @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js index 7153b37ec4084..944ca96c86caf 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<323e70fc16467db46e17fe533bfb2594>> + * @generated SignedSource<> */ "use strict"; @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js index f733d6f708e52..f5dc53d014424 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ /* @@ -16389,9 +16389,6 @@ __DEV__ && throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -16405,24 +16402,30 @@ __DEV__ && root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback$1(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback$1(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), + (updatedLanes = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = DiscreteEventPriority), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= CommitContext), commitBeforeMutationEffects(root, finishedWork), commitMutationEffects( @@ -16446,12 +16449,12 @@ __DEV__ && typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(), requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), + (executionContext = suspendedRetryLanes), + (ReactDOMSharedInternals.p = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - (transitions = rootDoesHavePassiveEffects) - ? ((rootDoesHavePassiveEffects = !1), + (transitions = spawnedLane) + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : (releaseRootPooledCache(root, remainingLanes), @@ -16463,7 +16466,6 @@ __DEV__ && onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); onCommitRoot(); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -16471,16 +16473,17 @@ __DEV__ && finishedWork++ ) (remainingLanes = recoverableErrors[finishedWork]), - (transitions = makeErrorInfo(remainingLanes.stack)), + (spawnedLane = makeErrorInfo(remainingLanes.stack)), runWithFiberInDEV( remainingLanes.source, renderPriorityLevel, remainingLanes.value, - transitions + spawnedLane ); 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) @@ -25323,7 +25326,6 @@ __DEV__ && RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -25883,11 +25885,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-native-fb-f5077bcc-20241217" !== isomorphicReactPackageVersion) + if ("19.1.0-native-fb-facec3ee-20241217" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-native-fb-f5077bcc-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-native-fb-facec3ee-20241217\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25924,10 +25926,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -26073,5 +26075,5 @@ __DEV__ && listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.1.0-native-fb-f5077bcc-20241217"; + exports.version = "19.1.0-native-fb-facec3ee-20241217"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js index c7416d1718f4d..5edc9a818e52d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<771368c7fededf676f9a6030056bfa44>> + * @generated SignedSource<<3983426ab11c7aaa107d81ebca2c5b9f>> */ /* @@ -10938,7 +10938,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -11828,9 +11827,6 @@ function commitRootImpl( root.finishedWork = null; root.finishedLanes = 0; if (finishedWork === root.current) throw Error(formatProdErrorMessage(177)); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -11844,23 +11840,29 @@ function commitRootImpl( root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback$1(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback$1(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), + (updatedLanes = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= 4), commitBeforeMutationEffects(root, finishedWork), commitMutationEffectsOnFiber(finishedWork, root), @@ -11870,19 +11872,18 @@ function commitRootImpl( (root.current = finishedWork), commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), + (executionContext = suspendedRetryLanes), + (ReactDOMSharedInternals.p = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), + spawnedLane + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : releaseRootPooledCache(root, remainingLanes); remainingLanes = root.pendingLanes; 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -11896,6 +11897,7 @@ function commitRootImpl( 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) ? root === rootWithNestedUpdates @@ -15867,14 +15869,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1722 = React.version; if ( - "19.1.0-native-fb-f5077bcc-20241217" !== + "19.1.0-native-fb-facec3ee-20241217" !== isomorphicReactPackageVersion$jscomp$inline_1722 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1722, - "19.1.0-native-fb-f5077bcc-20241217" + "19.1.0-native-fb-facec3ee-20241217" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15896,10 +15898,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2177 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2178 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16005,4 +16007,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js index c0a80fe765b58..3381e81f678fe 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<6575d7b55c4ce1a50713a0facee4a306>> + * @generated SignedSource<<350b3d8aa3f45f071bdab61d95033fa5>> */ /* @@ -11473,7 +11473,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -12440,9 +12439,6 @@ function commitRootImpl( root.finishedWork = null; root.finishedLanes = 0; if (finishedWork === root.current) throw Error(formatProdErrorMessage(177)); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -12456,24 +12452,30 @@ function commitRootImpl( root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback$1(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback$1(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), + (updatedLanes = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= 4), commitBeforeMutationEffects(root, finishedWork), commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate), @@ -12491,12 +12493,12 @@ function commitRootImpl( "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(), requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), + (executionContext = suspendedRetryLanes), + (ReactDOMSharedInternals.p = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), + spawnedLane + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : releaseRootPooledCache(root, remainingLanes); @@ -12504,7 +12506,6 @@ function commitRootImpl( 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -12518,6 +12519,7 @@ function commitRootImpl( 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) ? ((nestedUpdateScheduled = !0), @@ -16520,14 +16522,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version; if ( - "19.1.0-native-fb-f5077bcc-20241217" !== + "19.1.0-native-fb-facec3ee-20241217" !== isomorphicReactPackageVersion$jscomp$inline_1812 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1812, - "19.1.0-native-fb-f5077bcc-20241217" + "19.1.0-native-fb-facec3ee-20241217" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16549,10 +16551,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_1819 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217", + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$292 = 0; @@ -16673,4 +16675,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js index 3a54819b0e962..9093c107cfafe 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<05abd579e4caafab682a8930a6c30858>> */ /* @@ -16401,9 +16401,6 @@ __DEV__ && throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -16417,24 +16414,30 @@ __DEV__ && root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback$1(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback$1(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), + (updatedLanes = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = DiscreteEventPriority), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= CommitContext), commitBeforeMutationEffects(root, finishedWork), commitMutationEffects( @@ -16458,12 +16461,12 @@ __DEV__ && typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(), requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), + (executionContext = suspendedRetryLanes), + (ReactDOMSharedInternals.p = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - (transitions = rootDoesHavePassiveEffects) - ? ((rootDoesHavePassiveEffects = !1), + (transitions = spawnedLane) + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : (releaseRootPooledCache(root, remainingLanes), @@ -16475,7 +16478,6 @@ __DEV__ && onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); onCommitRoot(); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -16483,16 +16485,17 @@ __DEV__ && finishedWork++ ) (remainingLanes = recoverableErrors[finishedWork]), - (transitions = makeErrorInfo(remainingLanes.stack)), + (spawnedLane = makeErrorInfo(remainingLanes.stack)), runWithFiberInDEV( remainingLanes.source, renderPriorityLevel, remainingLanes.value, - transitions + spawnedLane ); 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) @@ -25384,7 +25387,6 @@ __DEV__ && RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -25944,11 +25946,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-native-fb-f5077bcc-20241217" !== isomorphicReactPackageVersion) + if ("19.1.0-native-fb-facec3ee-20241217" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-native-fb-f5077bcc-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-native-fb-facec3ee-20241217\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25985,10 +25987,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -26450,7 +26452,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-native-fb-f5077bcc-20241217"; + exports.version = "19.1.0-native-fb-facec3ee-20241217"; "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-dom/cjs/ReactDOMProfiling-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js index bc262a4358b96..0ec96ffb071eb 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<54a02ef74806b64ab6c6795928b77577>> + * @generated SignedSource<<80cbea9a31e2fc52be1326fd69eb2f30>> */ /* @@ -10938,7 +10938,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -11828,9 +11827,6 @@ function commitRootImpl( root.finishedWork = null; root.finishedLanes = 0; if (finishedWork === root.current) throw Error(formatProdErrorMessage(177)); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -11844,23 +11840,29 @@ function commitRootImpl( root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback$1(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback$1(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), + (updatedLanes = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= 4), commitBeforeMutationEffects(root, finishedWork), commitMutationEffectsOnFiber(finishedWork, root), @@ -11870,19 +11872,18 @@ function commitRootImpl( (root.current = finishedWork), commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), + (executionContext = suspendedRetryLanes), + (ReactDOMSharedInternals.p = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), + spawnedLane + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : releaseRootPooledCache(root, remainingLanes); remainingLanes = root.pendingLanes; 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -11896,6 +11897,7 @@ function commitRootImpl( 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) ? root === rootWithNestedUpdates @@ -15878,14 +15880,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1723 = React.version; if ( - "19.1.0-native-fb-f5077bcc-20241217" !== + "19.1.0-native-fb-facec3ee-20241217" !== isomorphicReactPackageVersion$jscomp$inline_1723 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1723, - "19.1.0-native-fb-f5077bcc-20241217" + "19.1.0-native-fb-facec3ee-20241217" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15907,10 +15909,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2180 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2181 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16170,4 +16172,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js index b5d482fbc7ec5..9b496772d605d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ /* @@ -11477,7 +11477,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -12444,9 +12443,6 @@ function commitRootImpl( root.finishedWork = null; root.finishedLanes = 0; if (finishedWork === root.current) throw Error(formatProdErrorMessage(177)); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -12460,24 +12456,30 @@ function commitRootImpl( root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback$1(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback$1(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = ReactDOMSharedInternals.p), + (updatedLanes = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = 2), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= 4), commitBeforeMutationEffects(root, finishedWork), commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate), @@ -12495,12 +12497,12 @@ function commitRootImpl( "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(), requestPaint(), - (executionContext = updatedLanes), - (ReactDOMSharedInternals.p = spawnedLane), + (executionContext = suspendedRetryLanes), + (ReactDOMSharedInternals.p = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), + spawnedLane + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : releaseRootPooledCache(root, remainingLanes); @@ -12508,7 +12510,6 @@ function commitRootImpl( 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -12522,6 +12523,7 @@ function commitRootImpl( 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) ? ((nestedUpdateScheduled = !0), @@ -16535,14 +16537,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1813 = React.version; if ( - "19.1.0-native-fb-f5077bcc-20241217" !== + "19.1.0-native-fb-facec3ee-20241217" !== isomorphicReactPackageVersion$jscomp$inline_1813 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1813, - "19.1.0-native-fb-f5077bcc-20241217" + "19.1.0-native-fb-facec3ee-20241217" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16564,10 +16566,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_1820 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217", + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$292 = 0; @@ -16842,7 +16844,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; "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-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js index d394d226f33d0..85660a58262e8 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,13 +7,13 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<729db2ae7b98dff022b2f8573c049f44>> + * @generated SignedSource<<78902a0cc7577afcd187780d1f27e17e>> */ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1145() { + function JSCompiler_object_inline_createNodeMock_1162() { return null; } function findHook(fiber, id) { @@ -693,41 +693,6 @@ __DEV__ && } return hook.checkDCE ? !0 : !1; } - function onCommitRoot(root, eventPriority) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) - try { - var didError = 128 === (root.current.flags & 128); - switch (eventPriority) { - case DiscreteEventPriority: - var schedulerPriority = ImmediatePriority; - break; - case ContinuousEventPriority: - schedulerPriority = UserBlockingPriority; - break; - case DefaultEventPriority: - schedulerPriority = NormalPriority$1; - break; - case IdleEventPriority: - schedulerPriority = IdlePriority; - break; - default: - schedulerPriority = NormalPriority$1; - } - injectedHook.onCommitFiberRoot( - rendererID, - root, - schedulerPriority, - didError - ); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); - } - } function setIsStrictModeForDevtools(newIsStrictMode) { "function" === typeof log$1 && (unstable_setDisableYieldValue(newIsStrictMode), @@ -747,11 +712,6 @@ __DEV__ && function injectProfilingHooks(profilingHooks) { injectedProfilingHooks = profilingHooks; } - function markCommitStopped() { - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markCommitStopped && - injectedProfilingHooks.markCommitStopped(); - } function markComponentRenderStarted(fiber) { null !== injectedProfilingHooks && "function" === @@ -975,53 +935,6 @@ __DEV__ && (root.pingedLanes = 0), (root.warmLanes = 0)); } - function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes - ) { - var previouslyPendingLanes = root.pendingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.warmLanes = 0; - root.expiredLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - root.errorRecoveryDisabledLanes &= remainingLanes; - root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, - hiddenUpdates = root.hiddenUpdates; - for ( - remainingLanes = previouslyPendingLanes & ~remainingLanes; - 0 < remainingLanes; - - ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; - expirationTimes[index] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index]; - if (null !== hiddenUpdatesForLane) - for ( - hiddenUpdates[index] = null, index = 0; - index < hiddenUpdatesForLane.length; - index++ - ) { - var update = hiddenUpdatesForLane[index]; - null !== update && (update.lane &= -536870913); - } - remainingLanes &= ~lane; - } - 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); - } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; root.suspendedLanes &= ~spawnedLane; @@ -1983,7 +1896,7 @@ __DEV__ && "A cache instance was released after it was already freed. This likely indicates a bug in React." ); 0 === cache.refCount && - scheduleCallback$2(NormalPriority, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } @@ -2136,12 +2049,13 @@ __DEV__ && } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } + suspendedLanes = pendingPassiveEffectsLanes; currentTime = workInProgressRoot; - suspendedLanes = workInProgressRootRenderLanes; - suspendedLanes = getNextLanes( - root, - root === currentTime ? suspendedLanes : 0 - ); + pingedLanes = workInProgressRootRenderLanes; + suspendedLanes = + root === rootWithPendingPassiveEffects + ? suspendedLanes + : getNextLanes(root, root === currentTime ? pingedLanes : 0); pingedLanes = root.callbackNode; if ( 0 === suspendedLanes || @@ -2156,44 +2070,45 @@ __DEV__ && (root.callbackPriority = 0) ); if ( - 0 === (suspendedLanes & 3) || - checkIfRootIsPrerendering(root, suspendedLanes) - ) { - currentTime = suspendedLanes & -suspendedLanes; - if ( - currentTime !== root.callbackPriority || - (null !== ReactSharedInternals.actQueue && - pingedLanes !== fakeActCallbackNode$1) - ) - cancelCallback(pingedLanes); - else return currentTime; - switch (lanesToEventPriority(suspendedLanes)) { - case DiscreteEventPriority: - case ContinuousEventPriority: - suspendedLanes = UserBlockingPriority; - break; - case DefaultEventPriority: - suspendedLanes = NormalPriority$1; - break; - case IdleEventPriority: - suspendedLanes = IdlePriority; - break; - default: - suspendedLanes = NormalPriority$1; - } - pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - null !== ReactSharedInternals.actQueue - ? (ReactSharedInternals.actQueue.push(pingedLanes), - (suspendedLanes = fakeActCallbackNode$1)) - : (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes)); - root.callbackPriority = currentTime; - root.callbackNode = suspendedLanes; - return currentTime; - } - null !== pingedLanes && cancelCallback(pingedLanes); - root.callbackPriority = 2; - root.callbackNode = null; - return 2; + 0 !== (suspendedLanes & 3) && + !checkIfRootIsPrerendering(root, suspendedLanes) + ) + return ( + null !== pingedLanes && cancelCallback(pingedLanes), + (root.callbackPriority = 2), + (root.callbackNode = null), + 2 + ); + currentTime = suspendedLanes & -suspendedLanes; + if ( + currentTime !== root.callbackPriority || + (null !== ReactSharedInternals.actQueue && + pingedLanes !== fakeActCallbackNode) + ) + cancelCallback(pingedLanes); + else return currentTime; + switch (lanesToEventPriority(suspendedLanes)) { + case DiscreteEventPriority: + case ContinuousEventPriority: + suspendedLanes = UserBlockingPriority; + break; + case DefaultEventPriority: + suspendedLanes = NormalPriority$1; + break; + case IdleEventPriority: + suspendedLanes = IdlePriority; + break; + default: + suspendedLanes = NormalPriority$1; + } + pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); + null !== ReactSharedInternals.actQueue + ? (ReactSharedInternals.actQueue.push(pingedLanes), + (suspendedLanes = fakeActCallbackNode)) + : (suspendedLanes = scheduleCallback$2(suspendedLanes, pingedLanes)); + root.callbackPriority = currentTime; + root.callbackNode = suspendedLanes; + return currentTime; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; @@ -2225,7 +2140,7 @@ __DEV__ && performWorkOnRoot(root, lanes, !0); } function cancelCallback(callbackNode) { - callbackNode !== fakeActCallbackNode$1 && + callbackNode !== fakeActCallbackNode && null !== callbackNode && cancelCallback$1(callbackNode); } @@ -2235,7 +2150,7 @@ __DEV__ && cb(); return null; }); - scheduleCallback$3(ImmediatePriority, cb); + scheduleCallback$2(ImmediatePriority, cb); } function requestTransitionLane() { 0 === currentEventTransitionLane && @@ -9466,59 +9381,6 @@ __DEV__ && ); } } - function commitBeforeMutationEffects(root, firstChild) { - for (nextEffect = firstChild; null !== nextEffect; ) - if ( - ((root = nextEffect), - (firstChild = root.child), - 0 !== (root.subtreeFlags & 1028) && null !== firstChild) - ) - (firstChild.return = root), (nextEffect = firstChild); - else - for (; null !== nextEffect; ) { - firstChild = root = nextEffect; - var current = firstChild.alternate, - flags = firstChild.flags; - switch (firstChild.tag) { - case 0: - break; - case 11: - case 15: - break; - case 1: - 0 !== (flags & 1024) && - null !== current && - commitClassSnapshot(firstChild, current); - break; - case 3: - 0 !== (flags & 1024) && - firstChild.stateNode.containerInfo.children.splice(0); - break; - case 5: - case 26: - case 27: - case 6: - case 4: - case 17: - break; - default: - if (0 !== (flags & 1024)) - throw Error( - "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." - ); - } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; - } - nextEffect = root.return; - } - root = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - return root; - } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; switch (finishedWork.tag) { @@ -11213,9 +11075,8 @@ __DEV__ && break; } a: { - renderWasConcurrent = root; - shouldTimeSlice = exitStatus; - switch (shouldTimeSlice) { + shouldTimeSlice = root; + switch (exitStatus) { case RootInProgress: case RootFatalErrored: throw Error("Root did not complete. This is a bug in React."); @@ -11223,7 +11084,7 @@ __DEV__ && if ((lanes & 4194176) !== lanes) break; case RootSuspendedAtTheShell: markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, workInProgressDeferredLane, !workInProgressRootDidSkipSuspendedSiblings @@ -11238,63 +11099,43 @@ __DEV__ && default: throw Error("Unknown root exit status."); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) { - lanes = renderWasConcurrent; - forceSync = workInProgressRootRecoverableErrors; - exitStatus = workInProgressTransitions; - renderWasConcurrent = - workInProgressRootDidIncludeRecursiveRenderUpdate; - lanesThatJustErrored = workInProgressDeferredLane; - originallyAttemptedLanes = - workInProgressRootInterleavedUpdatedLanes; - var suspendedRetryLanes = workInProgressSuspendedRetryLanes, - suspendedCommitReason = IMMEDIATE_COMMIT, - prevTransition = ReactSharedInternals.T, - previousUpdateLanePriority = currentUpdatePriority; - try { - (currentUpdatePriority = DiscreteEventPriority), - (ReactSharedInternals.T = null), - commitRootImpl( - lanes, - forceSync, - exitStatus, - renderWasConcurrent, - previousUpdateLanePriority, - lanesThatJustErrored, - originallyAttemptedLanes, - suspendedRetryLanes, - shouldTimeSlice, - suspendedCommitReason, - -0, - 0 - ); - } finally { - (ReactSharedInternals.T = prevTransition), - (currentUpdatePriority = previousUpdateLanePriority); - } - } else { + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + shouldTimeSlice, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + exitStatus, + IMMEDIATE_COMMIT, + -0, + 0 + ); + else { if ( (lanes & 62914560) === lanes && - shouldTimeSlice === RootSuspended && - ((exitStatus = + exitStatus === RootSuspended && + ((renderWasConcurrent = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1()), - 10 < exitStatus) + 10 < renderWasConcurrent) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, workInProgressDeferredLane, !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -11304,17 +11145,17 @@ __DEV__ && workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, workInProgressRootDidSkipSuspendedSiblings, - shouldTimeSlice, + exitStatus, THROTTLED_COMMIT, -0, 0 ), - exitStatus + renderWasConcurrent ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -11324,7 +11165,7 @@ __DEV__ && workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, workInProgressRootDidSkipSuspendedSiblings, - shouldTimeSlice, + exitStatus, IMMEDIATE_COMMIT, -0, 0 @@ -11363,29 +11204,19 @@ __DEV__ && lanes = finishedWork.subtreeFlags; (lanes & 8192 || 16785408 === (lanes & 16785408)) && accumulateSuspenseyCommitOnFiber(finishedWork); - finishedWork = ReactSharedInternals.T; - lanes = currentUpdatePriority; - try { - (currentUpdatePriority = DiscreteEventPriority), - (ReactSharedInternals.T = null), - commitRootImpl( - root, - recoverableErrors, - transitions, - didIncludeRenderPhaseUpdate, - lanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes, - exitStatus, - suspendedCommitReason, - completedRenderStartTime, - completedRenderEndTime - ); - } finally { - (ReactSharedInternals.T = finishedWork), - (currentUpdatePriority = lanes); - } + commitRoot( + root, + recoverableErrors, + transitions, + didIncludeRenderPhaseUpdate, + spawnedLane, + updatedLanes, + suspendedRetryLanes, + exitStatus, + suspendedCommitReason, + completedRenderStartTime, + completedRenderEndTime + ); } function isRenderConsistentWithExternalStores(finishedWork) { for (var node = finishedWork; ; ) { @@ -12054,132 +11885,258 @@ __DEV__ && workInProgressRootExitStatus = RootSuspendedAtTheShell; workInProgress = null; } - function commitRootImpl( - root, + function commitRoot( + root$jscomp$0, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, - renderPriorityLevel, spawnedLane, updatedLanes, suspendedRetryLanes ) { - do flushPassiveEffects(); - while (null !== rootWithPendingPassiveEffects); - ReactStrictModeWarnings.flushLegacyContextWarning(); - ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); - if ((executionContext & (RenderContext | CommitContext)) !== NoContext) - throw Error("Should not already be working."); - var finishedWork = root.finishedWork; - didIncludeRenderPhaseUpdate = root.finishedLanes; - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markCommitStarted && - injectedProfilingHooks.markCommitStarted(didIncludeRenderPhaseUpdate); - if (null === finishedWork) return markCommitStopped(), null; - 0 === didIncludeRenderPhaseUpdate && - error$jscomp$0( - "root.finishedLanes should not be empty during a commit. This is a bug in React." - ); - root.finishedWork = null; - root.finishedLanes = 0; - if (finishedWork === root.current) - throw Error( - "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." - ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; - var remainingLanes = finishedWork.lanes | finishedWork.childLanes; - remainingLanes |= concurrentlyUpdatedLanes; - markRootFinished( - root, - didIncludeRenderPhaseUpdate, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes - ); - root === workInProgressRoot && - ((workInProgress = workInProgressRoot = null), - (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); - commitStartTime = now(); - transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), - (currentUpdatePriority = DiscreteEventPriority), - (updatedLanes = executionContext), - (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffectsOnFiber(finishedWork, root), - (root.current = finishedWork), - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted( - didIncludeRenderPhaseUpdate - ), - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(), - requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); - (transitions = rootDoesHavePassiveEffects) - ? ((rootDoesHavePassiveEffects = !1), - (rootWithPendingPassiveEffects = root), - (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) - : (releaseRootPooledCache(root, remainingLanes), - (nestedPassiveUpdateCount = 0), - (rootWithPassiveNestedUpdates = null)); - remainingLanes = root.pendingLanes; - 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); - transitions || commitDoubleInvokeEffectsInDEV(root, !1); - onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root); - if (null !== recoverableErrors) - for ( - renderPriorityLevel = root.onRecoverableError, finishedWork = 0; - finishedWork < recoverableErrors.length; - finishedWork++ - ) - (remainingLanes = recoverableErrors[finishedWork]), - (transitions = makeErrorInfo(remainingLanes.stack)), - runWithFiberInDEV( - remainingLanes.source, - renderPriorityLevel, - remainingLanes.value, - transitions + didIncludeRenderPhaseUpdate = ReactSharedInternals.T; + var previousUpdateLanePriority = currentUpdatePriority; + try { + currentUpdatePriority = DiscreteEventPriority; + ReactSharedInternals.T = null; + do flushPassiveEffects(); + while (null !== rootWithPendingPassiveEffects); + ReactStrictModeWarnings.flushLegacyContextWarning(); + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) + throw Error("Should not already be working."); + var finishedWork = root$jscomp$0.finishedWork, + lanes = root$jscomp$0.finishedLanes; + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markCommitStarted && + injectedProfilingHooks.markCommitStarted(lanes); + if (null !== finishedWork) { + 0 === lanes && + error$jscomp$0( + "root.finishedLanes should not be empty during a commit. This is a bug in React." ); - 0 !== (pendingPassiveEffectsLanes & 3) && - 0 !== root.tag && - flushPassiveEffects(); - remainingLanes = root.pendingLanes; - 0 !== (didIncludeRenderPhaseUpdate & 4194218) && - 0 !== (remainingLanes & 42) - ? ((nestedUpdateScheduled = !0), - root === rootWithNestedUpdates - ? nestedUpdateCount++ - : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) - : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(0, !1); - markCommitStopped(); - return null; + root$jscomp$0.finishedWork = null; + root$jscomp$0.finishedLanes = 0; + if (finishedWork === root$jscomp$0.current) + throw Error( + "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." + ); + var remainingLanes = finishedWork.lanes | finishedWork.childLanes, + remainingLanes$jscomp$0 = (remainingLanes |= + concurrentlyUpdatedLanes), + previouslyPendingLanes = root$jscomp$0.pendingLanes; + root$jscomp$0.pendingLanes = remainingLanes$jscomp$0; + root$jscomp$0.suspendedLanes = 0; + root$jscomp$0.pingedLanes = 0; + root$jscomp$0.warmLanes = 0; + root$jscomp$0.expiredLanes &= remainingLanes$jscomp$0; + root$jscomp$0.entangledLanes &= remainingLanes$jscomp$0; + root$jscomp$0.errorRecoveryDisabledLanes &= remainingLanes$jscomp$0; + root$jscomp$0.shellSuspendCounter = 0; + var entanglements = root$jscomp$0.entanglements, + expirationTimes = root$jscomp$0.expirationTimes, + hiddenUpdates = root$jscomp$0.hiddenUpdates; + for ( + remainingLanes$jscomp$0 = + previouslyPendingLanes & ~remainingLanes$jscomp$0; + 0 < remainingLanes$jscomp$0; + + ) { + var index = 31 - clz32(remainingLanes$jscomp$0), + lane = 1 << index; + entanglements[index] = 0; + expirationTimes[index] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index]; + if (null !== hiddenUpdatesForLane) { + hiddenUpdates[index] = null; + for (var i = 0; i < hiddenUpdatesForLane.length; i++) { + var update = hiddenUpdatesForLane[i]; + null !== update && (update.lane &= -536870913); + } + } + remainingLanes$jscomp$0 &= ~lane; + } + 0 !== spawnedLane && + markSpawnedDeferredLane(root$jscomp$0, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + (root$jscomp$0.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~lanes)); + root$jscomp$0 === workInProgressRoot && + ((workInProgress = workInProgressRoot = null), + (workInProgressRootRenderLanes = 0)); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions)) + : ((root$jscomp$0.callbackNode = null), + (root$jscomp$0.callbackPriority = 0), + (root$jscomp$0.cancelPendingCommit = null)); + commitStartTime = now(); + var rootHasEffect = 0 !== (finishedWork.flags & 15990); + if (0 !== (finishedWork.subtreeFlags & 15990) || rootHasEffect) { + var prevTransition = ReactSharedInternals.T; + ReactSharedInternals.T = null; + transitions = currentUpdatePriority; + currentUpdatePriority = DiscreteEventPriority; + rootHasEffect = executionContext; + executionContext |= CommitContext; + for (nextEffect = finishedWork; null !== nextEffect; ) { + updatedLanes = nextEffect; + var child = updatedLanes.child; + if (0 !== (updatedLanes.subtreeFlags & 1028) && null !== child) + (child.return = updatedLanes), (nextEffect = child); + else + b: for (; null !== nextEffect; ) { + suspendedRetryLanes = updatedLanes = nextEffect; + var current = suspendedRetryLanes.alternate, + flags = suspendedRetryLanes.flags; + switch (suspendedRetryLanes.tag) { + case 0: + break; + case 11: + case 15: + break; + case 1: + 0 !== (flags & 1024) && + null !== current && + commitClassSnapshot(suspendedRetryLanes, current); + break; + case 3: + 0 !== (flags & 1024) && + suspendedRetryLanes.stateNode.containerInfo.children.splice( + 0 + ); + break; + case 5: + case 26: + case 27: + case 6: + case 4: + case 17: + break; + default: + if (0 !== (flags & 1024)) + throw Error( + "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." + ); + } + var sibling = updatedLanes.sibling; + if (null !== sibling) { + sibling.return = updatedLanes.return; + nextEffect = sibling; + break b; + } + nextEffect = updatedLanes.return; + } + } + commitMutationEffectsOnFiber(finishedWork, root$jscomp$0); + root$jscomp$0.current = finishedWork; + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes); + commitLayoutEffectOnFiber( + root$jscomp$0, + finishedWork.alternate, + finishedWork + ); + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(); + requestPaint(); + executionContext = rootHasEffect; + currentUpdatePriority = transitions; + ReactSharedInternals.T = prevTransition; + } else root$jscomp$0.current = finishedWork; + (prevTransition = spawnedLane) + ? ((rootWithPendingPassiveEffects = root$jscomp$0), + (pendingPassiveEffectsLanes = lanes)) + : (releaseRootPooledCache(root$jscomp$0, remainingLanes), + (nestedPassiveUpdateCount = 0), + (rootWithPassiveNestedUpdates = null)); + remainingLanes = root$jscomp$0.pendingLanes; + 0 === remainingLanes && + (legacyErrorBoundariesThatAlreadyFailed = null); + prevTransition || commitDoubleInvokeEffectsInDEV(root$jscomp$0, !1); + var root = finishedWork.stateNode; + if ( + injectedHook && + "function" === typeof injectedHook.onCommitFiberRoot + ) + try { + var didError = 128 === (root.current.flags & 128); + switch (previousUpdateLanePriority) { + case DiscreteEventPriority: + var schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority$1; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority$1; + } + injectedHook.onCommitFiberRoot( + rendererID, + root, + schedulerPriority, + didError + ); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), + error$jscomp$0( + "React instrumentation encountered an error: %s", + err + )); + } + if (null !== recoverableErrors) { + var onRecoverableError = root$jscomp$0.onRecoverableError; + for ( + finishedWork = 0; + finishedWork < recoverableErrors.length; + finishedWork++ + ) { + var recoverableError = recoverableErrors[finishedWork], + errorInfo = makeErrorInfo(recoverableError.stack); + runWithFiberInDEV( + recoverableError.source, + onRecoverableError, + recoverableError.value, + errorInfo + ); + } + } + 0 !== (pendingPassiveEffectsLanes & 3) && + 0 !== root$jscomp$0.tag && + flushPassiveEffects(); + ensureRootIsScheduled(root$jscomp$0); + remainingLanes = root$jscomp$0.pendingLanes; + 0 !== (lanes & 4194218) && 0 !== (remainingLanes & 42) + ? ((nestedUpdateScheduled = !0), + root$jscomp$0 === rootWithNestedUpdates + ? nestedUpdateCount++ + : ((nestedUpdateCount = 0), + (rootWithNestedUpdates = root$jscomp$0))) + : (nestedUpdateCount = 0); + flushSyncWorkAcrossRoots_impl(0, !1); + } + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markCommitStopped && + injectedProfilingHooks.markCommitStopped(); + } finally { + (ReactSharedInternals.T = didIncludeRenderPhaseUpdate), + (currentUpdatePriority = previousUpdateLanePriority); + } } function makeErrorInfo(componentStack) { componentStack = { componentStack: componentStack }; @@ -12222,6 +12179,9 @@ __DEV__ && lanes = pendingPassiveEffectsLanes; rootWithPendingPassiveEffects = null; pendingPassiveEffectsLanes = 0; + root$jscomp$0.callbackNode = null; + root$jscomp$0.callbackPriority = 0; + root$jscomp$0.cancelPendingCommit = null; if ( (executionContext & (RenderContext | CommitContext)) !== NoContext @@ -12259,6 +12219,7 @@ __DEV__ && : (nestedPassiveUpdateCount = 0); didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects = !1; + ensureRootIsScheduled(root$jscomp$0); if ( injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot @@ -12543,12 +12504,6 @@ __DEV__ && } } } - function scheduleCallback(priorityLevel, callback) { - var actQueue = ReactSharedInternals.actQueue; - return null !== actQueue - ? (actQueue.push(callback), fakeActCallbackNode) - : scheduleCallback$3(priorityLevel, callback); - } function warnIfUpdatesNotWrappedWithActDEV(fiber) { if (fiber.mode & 1) { if (!isConcurrentActEnvironment()) return; @@ -13477,7 +13432,7 @@ __DEV__ && var current = null, isRendering = !1, isArrayImpl = Array.isArray, - scheduleCallback$3 = Scheduler$1.unstable_scheduleCallback, + scheduleCallback$2 = Scheduler$1.unstable_scheduleCallback, cancelCallback$1 = Scheduler$1.unstable_cancelCallback, shouldYield = Scheduler$1.unstable_shouldYield, requestPaint = Scheduler$1.unstable_requestPaint, @@ -13570,7 +13525,7 @@ __DEV__ && }); }; }, - scheduleCallback$2 = Scheduler$1.unstable_scheduleCallback, + scheduleCallback$1 = Scheduler$1.unstable_scheduleCallback, NormalPriority = Scheduler$1.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, @@ -13595,7 +13550,7 @@ __DEV__ && mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0, - fakeActCallbackNode$1 = {}, + fakeActCallbackNode = {}, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, @@ -15283,7 +15238,6 @@ __DEV__ && offscreenSubtreeWasHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, - shouldFireAfterActiveInstanceBlur = !1, hostParent = null, hostParentIsContainer = !1, suspenseyCommitFlag = 8192, @@ -15354,7 +15308,6 @@ __DEV__ && RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -15373,8 +15326,7 @@ __DEV__ && didWarnStateUpdateForNotYetMountedComponent = null, didWarnAboutUpdateInRender = !1; var didWarnAboutUpdateInRenderForAnotherComponent = new Set(); - var fakeActCallbackNode = {}, - resolveFamily = null, + var resolveFamily = null, failedBoundaries = null; var hasBadMapPolyfill = !1; try { @@ -15587,10 +15539,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15612,7 +15564,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1145, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1162, isConcurrent = !1, isStrictMode = !1; "object" === typeof options && @@ -15735,5 +15687,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.1.0-native-fb-f5077bcc-20241217"; + exports.version = "19.1.0-native-fb-facec3ee-20241217"; })(); 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 f198813874525..4f27d341a7c4d 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"; @@ -448,7 +448,7 @@ function findCurrentFiberUsingSlowPath(fiber) { return a.stateNode.current === a ? fiber : alternate; } var isArrayImpl = Array.isArray, - scheduleCallback$3 = Scheduler$1.unstable_scheduleCallback, + scheduleCallback$2 = Scheduler$1.unstable_scheduleCallback, cancelCallback$1 = Scheduler$1.unstable_cancelCallback, shouldYield = Scheduler$1.unstable_shouldYield, requestPaint = Scheduler$1.unstable_requestPaint, @@ -461,17 +461,6 @@ var isArrayImpl = Array.isArray, unstable_setDisableYieldValue = Scheduler$1.unstable_setDisableYieldValue, rendererID = null, injectedHook = null; -function onCommitRoot(root) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) - try { - injectedHook.onCommitFiberRoot( - rendererID, - root, - void 0, - 128 === (root.current.flags & 128) - ); - } catch (err) {} -} function setIsStrictModeForDevtools(newIsStrictMode) { "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); if (injectedHook && "function" === typeof injectedHook.setStrictMode) @@ -652,53 +641,6 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { - var previouslyPendingLanes = root.pendingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.warmLanes = 0; - root.expiredLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - root.errorRecoveryDisabledLanes &= remainingLanes; - root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, - hiddenUpdates = root.hiddenUpdates; - for ( - remainingLanes = previouslyPendingLanes & ~remainingLanes; - 0 < remainingLanes; - - ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; - if (null !== hiddenUpdatesForLane) - for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ - ) { - var update = hiddenUpdatesForLane[index$7]; - null !== update && (update.lane &= -536870913); - } - remainingLanes &= ~lane; - } - 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); -} function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; root.suspendedLanes &= ~spawnedLane; @@ -1119,7 +1061,7 @@ var AbortControllerLocal = }); }; }, - scheduleCallback$2 = Scheduler$1.unstable_scheduleCallback, + scheduleCallback$1 = Scheduler$1.unstable_scheduleCallback, NormalPriority = Scheduler$1.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, @@ -1139,7 +1081,7 @@ function createCache() { function releaseCache(cache) { cache.refCount--; 0 === cache.refCount && - scheduleCallback$2(NormalPriority, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } @@ -1158,7 +1100,7 @@ function ensureRootIsScheduled(root) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), - scheduleCallback$3(ImmediatePriority, processRootScheduleInMicrotask)); + scheduleCallback$2(ImmediatePriority, processRootScheduleInMicrotask)); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -1241,12 +1183,13 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } + suspendedLanes = pendingPassiveEffectsLanes; currentTime = workInProgressRoot; - suspendedLanes = workInProgressRootRenderLanes; - suspendedLanes = getNextLanes( - root, - root === currentTime ? suspendedLanes : 0 - ); + pingedLanes = workInProgressRootRenderLanes; + suspendedLanes = + root === rootWithPendingPassiveEffects + ? suspendedLanes + : getNextLanes(root, root === currentTime ? pingedLanes : 0); pingedLanes = root.callbackNode; if ( 0 === suspendedLanes || @@ -1284,7 +1227,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { suspendedLanes = NormalPriority$1; } pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); + suspendedLanes = scheduleCallback$2(suspendedLanes, pingedLanes); root.callbackPriority = currentTime; root.callbackNode = suspendedLanes; return currentTime; @@ -6669,83 +6612,7 @@ function insertOrAppendPlacementNode(node, before, parent) { var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, - nextEffect = null, - shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - for (nextEffect = firstChild; null !== nextEffect; ) - if ( - ((root = nextEffect), - (firstChild = root.child), - 0 !== (root.subtreeFlags & 1028) && null !== firstChild) - ) - (firstChild.return = root), (nextEffect = firstChild); - else - for (; null !== nextEffect; ) { - root = nextEffect; - var current = root.alternate; - firstChild = root.flags; - switch (root.tag) { - case 0: - break; - case 11: - case 15: - break; - case 1: - if (0 !== (firstChild & 1024) && null !== current) { - firstChild = void 0; - var finishedWork = root, - prevProps = current.memoizedProps; - current = current.memoizedState; - var instance = finishedWork.stateNode; - try { - var resolvedPrevProps = resolveClassComponentProps( - finishedWork.type, - prevProps, - finishedWork.elementType === finishedWork.type - ); - firstChild = instance.getSnapshotBeforeUpdate( - resolvedPrevProps, - current - ); - instance.__reactInternalSnapshotBeforeUpdate = firstChild; - } catch (error) { - captureCommitPhaseError( - finishedWork, - finishedWork.return, - error - ); - } - } - break; - case 3: - 0 !== (firstChild & 1024) && - root.stateNode.containerInfo.children.splice(0); - break; - case 5: - case 26: - case 27: - case 6: - case 4: - case 17: - break; - default: - if (0 !== (firstChild & 1024)) - throw Error( - "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." - ); - } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; - } - nextEffect = root.return; - } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - return resolvedPrevProps; -} + nextEffect = null; function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; switch (finishedWork.tag) { @@ -7994,7 +7861,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -8224,45 +8090,226 @@ function queueRecoverableErrors(errors) { ); } function commitRootWhenReady( - root, - finishedWork, + root$jscomp$0, + finishedWork$jscomp$0, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, - lanes, + lanes$jscomp$0, spawnedLane, updatedLanes, - suspendedRetryLanes, - didSkipSuspendedSiblings, - exitStatus, - suspendedCommitReason, - completedRenderStartTime, - completedRenderEndTime + suspendedRetryLanes ) { - lanes = finishedWork.subtreeFlags; - (lanes & 8192 || 16785408 === (lanes & 16785408)) && - accumulateSuspenseyCommitOnFiber(finishedWork); - finishedWork = ReactSharedInternals.T; - lanes = currentUpdatePriority; + didIncludeRenderPhaseUpdate = finishedWork$jscomp$0.subtreeFlags; + (didIncludeRenderPhaseUpdate & 8192 || + 16785408 === (didIncludeRenderPhaseUpdate & 16785408)) && + accumulateSuspenseyCommitOnFiber(finishedWork$jscomp$0); + finishedWork$jscomp$0 = ReactSharedInternals.T; + didIncludeRenderPhaseUpdate = currentUpdatePriority; try { - (currentUpdatePriority = 2), - (ReactSharedInternals.T = null), - commitRootImpl( - root, - recoverableErrors, - transitions, - didIncludeRenderPhaseUpdate, - lanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes, - exitStatus, - suspendedCommitReason, - completedRenderStartTime, - completedRenderEndTime - ); + currentUpdatePriority = 2; + ReactSharedInternals.T = null; + do flushPassiveEffects(); + while (null !== rootWithPendingPassiveEffects); + if (0 !== (executionContext & 6)) + throw Error("Should not already be working."); + var finishedWork = root$jscomp$0.finishedWork, + lanes = root$jscomp$0.finishedLanes; + if (null !== finishedWork) { + root$jscomp$0.finishedWork = null; + root$jscomp$0.finishedLanes = 0; + if (finishedWork === root$jscomp$0.current) + throw Error( + "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." + ); + var remainingLanes = finishedWork.lanes | finishedWork.childLanes; + lanes$jscomp$0 = remainingLanes |= concurrentlyUpdatedLanes; + var previouslyPendingLanes = root$jscomp$0.pendingLanes; + root$jscomp$0.pendingLanes = lanes$jscomp$0; + root$jscomp$0.suspendedLanes = 0; + root$jscomp$0.pingedLanes = 0; + root$jscomp$0.warmLanes = 0; + root$jscomp$0.expiredLanes &= lanes$jscomp$0; + root$jscomp$0.entangledLanes &= lanes$jscomp$0; + root$jscomp$0.errorRecoveryDisabledLanes &= lanes$jscomp$0; + root$jscomp$0.shellSuspendCounter = 0; + var entanglements = root$jscomp$0.entanglements, + expirationTimes = root$jscomp$0.expirationTimes, + hiddenUpdates = root$jscomp$0.hiddenUpdates; + for ( + lanes$jscomp$0 = previouslyPendingLanes & ~lanes$jscomp$0; + 0 < lanes$jscomp$0; + + ) { + var index$7 = 31 - clz32(lanes$jscomp$0), + lane = 1 << index$7; + entanglements[index$7] = 0; + expirationTimes[index$7] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$7]; + if (null !== hiddenUpdatesForLane) { + hiddenUpdates[index$7] = null; + for (var i = 0; i < hiddenUpdatesForLane.length; i++) { + var update = hiddenUpdatesForLane[i]; + null !== update && (update.lane &= -536870913); + } + } + lanes$jscomp$0 &= ~lane; + } + 0 !== spawnedLane && + markSpawnedDeferredLane(root$jscomp$0, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + (root$jscomp$0.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~lanes)); + root$jscomp$0 === workInProgressRoot && + ((workInProgress = workInProgressRoot = null), + (workInProgressRootRenderLanes = 0)); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions)) + : ((root$jscomp$0.callbackNode = null), + (root$jscomp$0.callbackPriority = 0), + (root$jscomp$0.cancelPendingCommit = null)); + var rootHasEffect = 0 !== (finishedWork.flags & 15990); + if (0 !== (finishedWork.subtreeFlags & 15990) || rootHasEffect) { + var prevTransition = ReactSharedInternals.T; + ReactSharedInternals.T = null; + transitions = currentUpdatePriority; + currentUpdatePriority = 2; + rootHasEffect = executionContext; + executionContext |= 4; + for (nextEffect = finishedWork; null !== nextEffect; ) { + updatedLanes = nextEffect; + var child = updatedLanes.child; + if (0 !== (updatedLanes.subtreeFlags & 1028) && null !== child) + (child.return = updatedLanes), (nextEffect = child); + else + b: for (; null !== nextEffect; ) { + updatedLanes = nextEffect; + suspendedRetryLanes = void 0; + previouslyPendingLanes = updatedLanes; + var current = previouslyPendingLanes.alternate, + flags = previouslyPendingLanes.flags; + switch (previouslyPendingLanes.tag) { + case 0: + break; + case 11: + case 15: + break; + case 1: + if (0 !== (flags & 1024) && null !== current) { + var prevProps = current.memoizedProps, + prevState = current.memoizedState, + instance = previouslyPendingLanes.stateNode; + try { + var resolvedPrevProps = resolveClassComponentProps( + previouslyPendingLanes.type, + prevProps, + previouslyPendingLanes.elementType === + previouslyPendingLanes.type + ); + suspendedRetryLanes = instance.getSnapshotBeforeUpdate( + resolvedPrevProps, + prevState + ); + instance.__reactInternalSnapshotBeforeUpdate = + suspendedRetryLanes; + } catch (error) { + captureCommitPhaseError( + previouslyPendingLanes, + previouslyPendingLanes.return, + error + ); + } + } + break; + case 3: + 0 !== (flags & 1024) && + previouslyPendingLanes.stateNode.containerInfo.children.splice( + 0 + ); + break; + case 5: + case 26: + case 27: + case 6: + case 4: + case 17: + break; + default: + if (0 !== (flags & 1024)) + throw Error( + "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." + ); + } + var sibling = updatedLanes.sibling; + if (null !== sibling) { + sibling.return = updatedLanes.return; + nextEffect = sibling; + break b; + } + nextEffect = updatedLanes.return; + } + } + commitMutationEffectsOnFiber(finishedWork, root$jscomp$0); + root$jscomp$0.current = finishedWork; + commitLayoutEffectOnFiber( + root$jscomp$0, + finishedWork.alternate, + finishedWork + ); + requestPaint(); + executionContext = rootHasEffect; + currentUpdatePriority = transitions; + ReactSharedInternals.T = prevTransition; + } else root$jscomp$0.current = finishedWork; + spawnedLane + ? ((rootWithPendingPassiveEffects = root$jscomp$0), + (pendingPassiveEffectsLanes = lanes)) + : releaseRootPooledCache(root$jscomp$0, remainingLanes); + remainingLanes = root$jscomp$0.pendingLanes; + 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); + var root = finishedWork.stateNode; + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) + try { + injectedHook.onCommitFiberRoot( + rendererID, + root, + void 0, + 128 === (root.current.flags & 128) + ); + } catch (err) {} + if (null !== recoverableErrors) { + var onRecoverableError = root$jscomp$0.onRecoverableError; + for ( + finishedWork = 0; + finishedWork < recoverableErrors.length; + finishedWork++ + ) { + var recoverableError = recoverableErrors[finishedWork]; + onRecoverableError(recoverableError.value, { + componentStack: recoverableError.stack + }); + } + } + 0 !== (pendingPassiveEffectsLanes & 3) && + 0 !== root$jscomp$0.tag && + flushPassiveEffects(); + ensureRootIsScheduled(root$jscomp$0); + remainingLanes = root$jscomp$0.pendingLanes; + 0 !== (lanes & 4194218) && 0 !== (remainingLanes & 42) + ? root$jscomp$0 === rootWithNestedUpdates + ? nestedUpdateCount++ + : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root$jscomp$0)) + : (nestedUpdateCount = 0); + flushSyncWorkAcrossRoots_impl(0, !1); + } } finally { - (ReactSharedInternals.T = finishedWork), (currentUpdatePriority = lanes); + (ReactSharedInternals.T = finishedWork$jscomp$0), + (currentUpdatePriority = didIncludeRenderPhaseUpdate); } } function isRenderConsistentWithExternalStores(finishedWork) { @@ -8792,103 +8839,6 @@ function unwindUnitOfWork(unitOfWork, skipSiblings) { workInProgressRootExitStatus = 6; workInProgress = null; } -function commitRootImpl( - root, - recoverableErrors, - transitions, - didIncludeRenderPhaseUpdate, - renderPriorityLevel, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { - do flushPassiveEffects(); - while (null !== rootWithPendingPassiveEffects); - if (0 !== (executionContext & 6)) - throw Error("Should not already be working."); - var finishedWork = root.finishedWork; - didIncludeRenderPhaseUpdate = root.finishedLanes; - if (null === finishedWork) return null; - root.finishedWork = null; - root.finishedLanes = 0; - if (finishedWork === root.current) - throw Error( - "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." - ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; - var remainingLanes = finishedWork.lanes | finishedWork.childLanes; - remainingLanes |= concurrentlyUpdatedLanes; - markRootFinished( - root, - didIncludeRenderPhaseUpdate, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes - ); - root === workInProgressRoot && - ((workInProgress = workInProgressRoot = null), - (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); - transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), - (currentUpdatePriority = 2), - (updatedLanes = executionContext), - (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffectsOnFiber(finishedWork, root), - (root.current = finishedWork), - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), - requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), - (rootWithPendingPassiveEffects = root), - (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) - : releaseRootPooledCache(root, remainingLanes); - remainingLanes = root.pendingLanes; - 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); - onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root); - if (null !== recoverableErrors) - for ( - renderPriorityLevel = root.onRecoverableError, finishedWork = 0; - finishedWork < recoverableErrors.length; - finishedWork++ - ) - (remainingLanes = recoverableErrors[finishedWork]), - renderPriorityLevel(remainingLanes.value, { - componentStack: remainingLanes.stack - }); - 0 !== (pendingPassiveEffectsLanes & 3) && - 0 !== root.tag && - flushPassiveEffects(); - remainingLanes = root.pendingLanes; - 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) - ? root === rootWithNestedUpdates - ? nestedUpdateCount++ - : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) - : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(0, !1); - return null; -} function releaseRootPooledCache(root, remainingLanes) { 0 === (root.pooledCacheLanes &= remainingLanes) && ((remainingLanes = root.pooledCache), @@ -8915,6 +8865,9 @@ function flushPassiveEffects() { lanes = pendingPassiveEffectsLanes; rootWithPendingPassiveEffects = null; pendingPassiveEffectsLanes = 0; + root$jscomp$0.callbackNode = null; + root$jscomp$0.callbackPriority = 0; + root$jscomp$0.cancelPendingCommit = null; if (0 !== (executionContext & 6)) throw Error("Cannot flush passive effects while already rendering."); var prevExecutionContext = executionContext; @@ -8928,6 +8881,7 @@ function flushPassiveEffects() { ); executionContext = prevExecutionContext; flushSyncWorkAcrossRoots_impl(0, !1); + ensureRootIsScheduled(root$jscomp$0); if ( injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot @@ -9062,9 +9016,6 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } -function scheduleCallback(priorityLevel, callback) { - return scheduleCallback$3(priorityLevel, callback); -} function FiberNode(tag, pendingProps, key, mode) { this.tag = tag; this.key = key; @@ -9745,24 +9696,24 @@ function wrapFiber(fiber) { fiberToWrapper.set(fiber, wrapper)); return wrapper; } -var internals$jscomp$inline_1381 = { +var internals$jscomp$inline_1452 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1382 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1453 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1382.isDisabled && - hook$jscomp$inline_1382.supportsFiber + !hook$jscomp$inline_1453.isDisabled && + hook$jscomp$inline_1453.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1382.inject( - internals$jscomp$inline_1381 + (rendererID = hook$jscomp$inline_1453.inject( + internals$jscomp$inline_1452 )), - (injectedHook = hook$jscomp$inline_1382); + (injectedHook = hook$jscomp$inline_1453); } catch (err) {} } exports._Scheduler = Scheduler; @@ -9886,4 +9837,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; 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 dcd5d978603c1..bd13e161a130e 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<<96fa114229484da838c43097bec32e31>> + * @generated SignedSource<<1be8aa112716bb4f4e65b3ee9351eb44>> */ "use strict"; @@ -448,7 +448,7 @@ function findCurrentFiberUsingSlowPath(fiber) { return a.stateNode.current === a ? fiber : alternate; } var isArrayImpl = Array.isArray, - scheduleCallback$3 = Scheduler$1.unstable_scheduleCallback, + scheduleCallback$2 = Scheduler$1.unstable_scheduleCallback, cancelCallback$1 = Scheduler$1.unstable_cancelCallback, shouldYield = Scheduler$1.unstable_shouldYield, requestPaint = Scheduler$1.unstable_requestPaint, @@ -463,34 +463,6 @@ var isArrayImpl = Array.isArray, injectedHook = null, injectedProfilingHooks = null, isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__; -function onCommitRoot(root, eventPriority) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) - try { - var didError = 128 === (root.current.flags & 128); - switch (eventPriority) { - case 2: - var schedulerPriority = ImmediatePriority; - break; - case 8: - schedulerPriority = UserBlockingPriority; - break; - case 32: - schedulerPriority = NormalPriority$1; - break; - case 268435456: - schedulerPriority = IdlePriority; - break; - default: - schedulerPriority = NormalPriority$1; - } - injectedHook.onCommitFiberRoot( - rendererID, - root, - schedulerPriority, - didError - ); - } catch (err) {} -} function setIsStrictModeForDevtools(newIsStrictMode) { "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); if (injectedHook && "function" === typeof injectedHook.setStrictMode) @@ -498,11 +470,6 @@ function setIsStrictModeForDevtools(newIsStrictMode) { injectedHook.setStrictMode(rendererID, newIsStrictMode); } catch (err) {} } -function markCommitStopped() { - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markCommitStopped && - injectedProfilingHooks.markCommitStopped(); -} function markComponentRenderStarted(fiber) { null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentRenderStarted && @@ -717,53 +684,6 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { - var previouslyPendingLanes = root.pendingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.warmLanes = 0; - root.expiredLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - root.errorRecoveryDisabledLanes &= remainingLanes; - root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, - hiddenUpdates = root.hiddenUpdates; - for ( - remainingLanes = previouslyPendingLanes & ~remainingLanes; - 0 < remainingLanes; - - ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; - if (null !== hiddenUpdatesForLane) - for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ - ) { - var update = hiddenUpdatesForLane[index$7]; - null !== update && (update.lane &= -536870913); - } - remainingLanes &= ~lane; - } - 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); -} function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; root.suspendedLanes &= ~spawnedLane; @@ -1184,7 +1104,7 @@ var AbortControllerLocal = }); }; }, - scheduleCallback$2 = Scheduler$1.unstable_scheduleCallback, + scheduleCallback$1 = Scheduler$1.unstable_scheduleCallback, NormalPriority = Scheduler$1.unstable_NormalPriority, CacheContext = { $$typeof: REACT_CONTEXT_TYPE, @@ -1204,7 +1124,7 @@ function createCache() { function releaseCache(cache) { cache.refCount--; 0 === cache.refCount && - scheduleCallback$2(NormalPriority, function () { + scheduleCallback$1(NormalPriority, function () { cache.controller.abort(); }); } @@ -1277,7 +1197,7 @@ function ensureRootIsScheduled(root) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), - scheduleCallback$3(ImmediatePriority, processRootScheduleInMicrotask)); + scheduleCallback$2(ImmediatePriority, processRootScheduleInMicrotask)); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -1360,12 +1280,13 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { } else expirationTime <= currentTime && (root.expiredLanes |= lane); lanes &= ~lane; } + suspendedLanes = pendingPassiveEffectsLanes; currentTime = workInProgressRoot; - suspendedLanes = workInProgressRootRenderLanes; - suspendedLanes = getNextLanes( - root, - root === currentTime ? suspendedLanes : 0 - ); + pingedLanes = workInProgressRootRenderLanes; + suspendedLanes = + root === rootWithPendingPassiveEffects + ? suspendedLanes + : getNextLanes(root, root === currentTime ? pingedLanes : 0); pingedLanes = root.callbackNode; if ( 0 === suspendedLanes || @@ -1403,7 +1324,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { suspendedLanes = NormalPriority$1; } pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); + suspendedLanes = scheduleCallback$2(suspendedLanes, pingedLanes); root.callbackPriority = currentTime; root.callbackNode = suspendedLanes; return currentTime; @@ -7060,83 +6981,7 @@ function insertOrAppendPlacementNode(node, before, parent) { var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, - nextEffect = null, - shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - for (nextEffect = firstChild; null !== nextEffect; ) - if ( - ((root = nextEffect), - (firstChild = root.child), - 0 !== (root.subtreeFlags & 1028) && null !== firstChild) - ) - (firstChild.return = root), (nextEffect = firstChild); - else - for (; null !== nextEffect; ) { - root = nextEffect; - var current = root.alternate; - firstChild = root.flags; - switch (root.tag) { - case 0: - break; - case 11: - case 15: - break; - case 1: - if (0 !== (firstChild & 1024) && null !== current) { - firstChild = void 0; - var finishedWork = root, - prevProps = current.memoizedProps; - current = current.memoizedState; - var instance = finishedWork.stateNode; - try { - var resolvedPrevProps = resolveClassComponentProps( - finishedWork.type, - prevProps, - finishedWork.elementType === finishedWork.type - ); - firstChild = instance.getSnapshotBeforeUpdate( - resolvedPrevProps, - current - ); - instance.__reactInternalSnapshotBeforeUpdate = firstChild; - } catch (error) { - captureCommitPhaseError( - finishedWork, - finishedWork.return, - error - ); - } - } - break; - case 3: - 0 !== (firstChild & 1024) && - root.stateNode.containerInfo.children.splice(0); - break; - case 5: - case 26: - case 27: - case 6: - case 4: - case 17: - break; - default: - if (0 !== (firstChild & 1024)) - throw Error( - "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." - ); - } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; - } - nextEffect = root.return; - } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - return resolvedPrevProps; -} + nextEffect = null; function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; switch (finishedWork.tag) { @@ -8463,7 +8308,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -8693,45 +8537,260 @@ function queueRecoverableErrors(errors) { ); } function commitRootWhenReady( - root, - finishedWork, + root$jscomp$0, + finishedWork$jscomp$0, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, - lanes, + lanes$jscomp$0, spawnedLane, updatedLanes, - suspendedRetryLanes, - didSkipSuspendedSiblings, - exitStatus, - suspendedCommitReason, - completedRenderStartTime, - completedRenderEndTime + suspendedRetryLanes ) { - lanes = finishedWork.subtreeFlags; - (lanes & 8192 || 16785408 === (lanes & 16785408)) && - accumulateSuspenseyCommitOnFiber(finishedWork); - finishedWork = ReactSharedInternals.T; - lanes = currentUpdatePriority; + didIncludeRenderPhaseUpdate = finishedWork$jscomp$0.subtreeFlags; + (didIncludeRenderPhaseUpdate & 8192 || + 16785408 === (didIncludeRenderPhaseUpdate & 16785408)) && + accumulateSuspenseyCommitOnFiber(finishedWork$jscomp$0); + finishedWork$jscomp$0 = ReactSharedInternals.T; + didIncludeRenderPhaseUpdate = currentUpdatePriority; try { - (currentUpdatePriority = 2), - (ReactSharedInternals.T = null), - commitRootImpl( - root, - recoverableErrors, - transitions, - didIncludeRenderPhaseUpdate, - lanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes, - exitStatus, - suspendedCommitReason, - completedRenderStartTime, - completedRenderEndTime - ); + currentUpdatePriority = 2; + ReactSharedInternals.T = null; + do flushPassiveEffects(); + while (null !== rootWithPendingPassiveEffects); + if (0 !== (executionContext & 6)) + throw Error("Should not already be working."); + var finishedWork = root$jscomp$0.finishedWork, + lanes = root$jscomp$0.finishedLanes; + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markCommitStarted && + injectedProfilingHooks.markCommitStarted(lanes); + if (null !== finishedWork) { + root$jscomp$0.finishedWork = null; + root$jscomp$0.finishedLanes = 0; + if (finishedWork === root$jscomp$0.current) + throw Error( + "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." + ); + var remainingLanes = finishedWork.lanes | finishedWork.childLanes; + lanes$jscomp$0 = remainingLanes |= concurrentlyUpdatedLanes; + var previouslyPendingLanes = root$jscomp$0.pendingLanes; + root$jscomp$0.pendingLanes = lanes$jscomp$0; + root$jscomp$0.suspendedLanes = 0; + root$jscomp$0.pingedLanes = 0; + root$jscomp$0.warmLanes = 0; + root$jscomp$0.expiredLanes &= lanes$jscomp$0; + root$jscomp$0.entangledLanes &= lanes$jscomp$0; + root$jscomp$0.errorRecoveryDisabledLanes &= lanes$jscomp$0; + root$jscomp$0.shellSuspendCounter = 0; + var entanglements = root$jscomp$0.entanglements, + expirationTimes = root$jscomp$0.expirationTimes, + hiddenUpdates = root$jscomp$0.hiddenUpdates; + for ( + lanes$jscomp$0 = previouslyPendingLanes & ~lanes$jscomp$0; + 0 < lanes$jscomp$0; + + ) { + var index$7 = 31 - clz32(lanes$jscomp$0), + lane = 1 << index$7; + entanglements[index$7] = 0; + expirationTimes[index$7] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$7]; + if (null !== hiddenUpdatesForLane) { + hiddenUpdates[index$7] = null; + for (var i = 0; i < hiddenUpdatesForLane.length; i++) { + var update = hiddenUpdatesForLane[i]; + null !== update && (update.lane &= -536870913); + } + } + lanes$jscomp$0 &= ~lane; + } + 0 !== spawnedLane && + markSpawnedDeferredLane(root$jscomp$0, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + (root$jscomp$0.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~lanes)); + root$jscomp$0 === workInProgressRoot && + ((workInProgress = workInProgressRoot = null), + (workInProgressRootRenderLanes = 0)); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions)) + : ((root$jscomp$0.callbackNode = null), + (root$jscomp$0.callbackPriority = 0), + (root$jscomp$0.cancelPendingCommit = null)); + commitStartTime = now(); + var rootHasEffect = 0 !== (finishedWork.flags & 15990); + if (0 !== (finishedWork.subtreeFlags & 15990) || rootHasEffect) { + var prevTransition = ReactSharedInternals.T; + ReactSharedInternals.T = null; + transitions = currentUpdatePriority; + currentUpdatePriority = 2; + rootHasEffect = executionContext; + executionContext |= 4; + for (nextEffect = finishedWork; null !== nextEffect; ) { + updatedLanes = nextEffect; + var child = updatedLanes.child; + if (0 !== (updatedLanes.subtreeFlags & 1028) && null !== child) + (child.return = updatedLanes), (nextEffect = child); + else + b: for (; null !== nextEffect; ) { + updatedLanes = nextEffect; + suspendedRetryLanes = void 0; + previouslyPendingLanes = updatedLanes; + var current = previouslyPendingLanes.alternate, + flags = previouslyPendingLanes.flags; + switch (previouslyPendingLanes.tag) { + case 0: + break; + case 11: + case 15: + break; + case 1: + if (0 !== (flags & 1024) && null !== current) { + var prevProps = current.memoizedProps, + prevState = current.memoizedState, + instance = previouslyPendingLanes.stateNode; + try { + var resolvedPrevProps = resolveClassComponentProps( + previouslyPendingLanes.type, + prevProps, + previouslyPendingLanes.elementType === + previouslyPendingLanes.type + ); + suspendedRetryLanes = instance.getSnapshotBeforeUpdate( + resolvedPrevProps, + prevState + ); + instance.__reactInternalSnapshotBeforeUpdate = + suspendedRetryLanes; + } catch (error) { + captureCommitPhaseError( + previouslyPendingLanes, + previouslyPendingLanes.return, + error + ); + } + } + break; + case 3: + 0 !== (flags & 1024) && + previouslyPendingLanes.stateNode.containerInfo.children.splice( + 0 + ); + break; + case 5: + case 26: + case 27: + case 6: + case 4: + case 17: + break; + default: + if (0 !== (flags & 1024)) + throw Error( + "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." + ); + } + var sibling = updatedLanes.sibling; + if (null !== sibling) { + sibling.return = updatedLanes.return; + nextEffect = sibling; + break b; + } + nextEffect = updatedLanes.return; + } + } + commitMutationEffectsOnFiber(finishedWork, root$jscomp$0); + root$jscomp$0.current = finishedWork; + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes); + commitLayoutEffectOnFiber( + root$jscomp$0, + finishedWork.alternate, + finishedWork + ); + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(); + requestPaint(); + executionContext = rootHasEffect; + currentUpdatePriority = transitions; + ReactSharedInternals.T = prevTransition; + } else root$jscomp$0.current = finishedWork; + spawnedLane + ? ((rootWithPendingPassiveEffects = root$jscomp$0), + (pendingPassiveEffectsLanes = lanes)) + : releaseRootPooledCache(root$jscomp$0, remainingLanes); + remainingLanes = root$jscomp$0.pendingLanes; + 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); + var root = finishedWork.stateNode; + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) + try { + var didError = 128 === (root.current.flags & 128); + switch (didIncludeRenderPhaseUpdate) { + case 2: + var schedulerPriority = ImmediatePriority; + break; + case 8: + schedulerPriority = UserBlockingPriority; + break; + case 32: + schedulerPriority = NormalPriority$1; + break; + case 268435456: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority$1; + } + injectedHook.onCommitFiberRoot( + rendererID, + root, + schedulerPriority, + didError + ); + } catch (err) {} + if (null !== recoverableErrors) { + var onRecoverableError = root$jscomp$0.onRecoverableError; + for ( + finishedWork = 0; + finishedWork < recoverableErrors.length; + finishedWork++ + ) { + var recoverableError = recoverableErrors[finishedWork]; + onRecoverableError(recoverableError.value, { + componentStack: recoverableError.stack + }); + } + } + 0 !== (pendingPassiveEffectsLanes & 3) && + 0 !== root$jscomp$0.tag && + flushPassiveEffects(); + ensureRootIsScheduled(root$jscomp$0); + remainingLanes = root$jscomp$0.pendingLanes; + 0 !== (lanes & 4194218) && 0 !== (remainingLanes & 42) + ? ((nestedUpdateScheduled = !0), + root$jscomp$0 === rootWithNestedUpdates + ? nestedUpdateCount++ + : ((nestedUpdateCount = 0), + (rootWithNestedUpdates = root$jscomp$0))) + : (nestedUpdateCount = 0); + flushSyncWorkAcrossRoots_impl(0, !1); + } + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markCommitStopped && + injectedProfilingHooks.markCommitStopped(); } finally { - (ReactSharedInternals.T = finishedWork), (currentUpdatePriority = lanes); + (ReactSharedInternals.T = finishedWork$jscomp$0), + (currentUpdatePriority = didIncludeRenderPhaseUpdate); } } function isRenderConsistentWithExternalStores(finishedWork) { @@ -9319,117 +9378,6 @@ function unwindUnitOfWork(unitOfWork, skipSiblings) { workInProgressRootExitStatus = 6; workInProgress = null; } -function commitRootImpl( - root, - recoverableErrors, - transitions, - didIncludeRenderPhaseUpdate, - renderPriorityLevel, - spawnedLane, - updatedLanes, - suspendedRetryLanes -) { - do flushPassiveEffects(); - while (null !== rootWithPendingPassiveEffects); - if (0 !== (executionContext & 6)) - throw Error("Should not already be working."); - var finishedWork = root.finishedWork; - didIncludeRenderPhaseUpdate = root.finishedLanes; - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markCommitStarted && - injectedProfilingHooks.markCommitStarted(didIncludeRenderPhaseUpdate); - if (null === finishedWork) return markCommitStopped(), null; - root.finishedWork = null; - root.finishedLanes = 0; - if (finishedWork === root.current) - throw Error( - "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." - ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; - var remainingLanes = finishedWork.lanes | finishedWork.childLanes; - remainingLanes |= concurrentlyUpdatedLanes; - markRootFinished( - root, - didIncludeRenderPhaseUpdate, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes - ); - root === workInProgressRoot && - ((workInProgress = workInProgressRoot = null), - (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); - commitStartTime = now(); - transitions = 0 !== (finishedWork.flags & 15990); - 0 !== (finishedWork.subtreeFlags & 15990) || transitions - ? ((transitions = ReactSharedInternals.T), - (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), - (currentUpdatePriority = 2), - (updatedLanes = executionContext), - (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), - commitMutationEffectsOnFiber(finishedWork, root), - (root.current = finishedWork), - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted( - didIncludeRenderPhaseUpdate - ), - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(), - requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), - (ReactSharedInternals.T = transitions)) - : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), - (rootWithPendingPassiveEffects = root), - (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) - : releaseRootPooledCache(root, remainingLanes); - remainingLanes = root.pendingLanes; - 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); - onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root); - if (null !== recoverableErrors) - for ( - renderPriorityLevel = root.onRecoverableError, finishedWork = 0; - finishedWork < recoverableErrors.length; - finishedWork++ - ) - (remainingLanes = recoverableErrors[finishedWork]), - renderPriorityLevel(remainingLanes.value, { - componentStack: remainingLanes.stack - }); - 0 !== (pendingPassiveEffectsLanes & 3) && - 0 !== root.tag && - flushPassiveEffects(); - remainingLanes = root.pendingLanes; - 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) - ? ((nestedUpdateScheduled = !0), - root === rootWithNestedUpdates - ? nestedUpdateCount++ - : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) - : (nestedUpdateCount = 0); - flushSyncWorkAcrossRoots_impl(0, !1); - markCommitStopped(); - return null; -} function releaseRootPooledCache(root, remainingLanes) { 0 === (root.pooledCacheLanes &= remainingLanes) && ((remainingLanes = root.pooledCache), @@ -9456,6 +9404,9 @@ function flushPassiveEffects() { lanes = pendingPassiveEffectsLanes; rootWithPendingPassiveEffects = null; pendingPassiveEffectsLanes = 0; + root$jscomp$0.callbackNode = null; + root$jscomp$0.callbackPriority = 0; + root$jscomp$0.cancelPendingCommit = null; if (0 !== (executionContext & 6)) throw Error("Cannot flush passive effects while already rendering."); null !== injectedProfilingHooks && @@ -9477,6 +9428,7 @@ function flushPassiveEffects() { injectedProfilingHooks.markPassiveEffectsStopped(); executionContext = prevExecutionContext; flushSyncWorkAcrossRoots_impl(0, !1); + ensureRootIsScheduled(root$jscomp$0); if ( injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot @@ -9614,9 +9566,6 @@ function resolveRetryWakeable(boundaryFiber, wakeable) { null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } -function scheduleCallback(priorityLevel, callback) { - return scheduleCallback$3(priorityLevel, callback); -} function FiberNode(tag, pendingProps, key, mode) { this.tag = tag; this.key = key; @@ -10314,12 +10263,12 @@ function wrapFiber(fiber) { fiberToWrapper.set(fiber, wrapper)); return wrapper; } -var internals$jscomp$inline_1194 = { +var internals$jscomp$inline_1238 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217", + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$146 = 0; @@ -10337,16 +10286,16 @@ var internals$jscomp$inline_1194 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1438 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1511 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1438.isDisabled && - hook$jscomp$inline_1438.supportsFiber + !hook$jscomp$inline_1511.isDisabled && + hook$jscomp$inline_1511.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1438.inject( - internals$jscomp$inline_1194 + (rendererID = hook$jscomp$inline_1511.inject( + internals$jscomp$inline_1238 )), - (injectedHook = hook$jscomp$inline_1438); + (injectedHook = hook$jscomp$inline_1511); } catch (err) {} } exports._Scheduler = Scheduler; @@ -10470,4 +10419,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; 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 73e1d66e6595f..dbad2ac3729ce 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<<9691a1ebef437f1e44787bb09edca97b>> + * @generated SignedSource<> */ "use strict"; @@ -1824,7 +1824,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-native-fb-f5077bcc-20241217"; + exports.version = "19.1.0-native-fb-facec3ee-20241217"; "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 e1bd39d544241..65e2e20cebca4 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<<863c556118fc681f1717451f3008b19f>> + * @generated SignedSource<> */ "use strict"; @@ -592,4 +592,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; 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 ff6ef581079d2..4e358749a4bf6 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<<242e58c6bd157c824f2c72bb1b720c45>> + * @generated SignedSource<<329145a6b05b23aebf6f95fbd5d2f3ee>> */ "use strict"; @@ -596,7 +596,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-native-fb-f5077bcc-20241217"; +exports.version = "19.1.0-native-fb-facec3ee-20241217"; "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 9d0d583a638a6..6663f01bf8cc6 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 @@ -f5077bcc925aa6d0ba2ca4041c875d35e24f6266 +facec3ee71fff8b23f1e91005fce730cc96e4021 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 2d42498bc970a..19a8f12dc6c42 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<<94a15d13b969194ffde03158a4b9169c>> + * @generated SignedSource<<418c7615e76bd487dc0ade94b58bc04c>> */ "use strict"; @@ -13087,9 +13087,6 @@ __DEV__ && throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -13103,24 +13100,30 @@ __DEV__ && root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), + (updatedLanes = currentUpdatePriority), (currentUpdatePriority = DiscreteEventPriority), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= CommitContext), commitBeforeMutationEffects(root, finishedWork), commitMutationEffects( @@ -13141,12 +13144,12 @@ __DEV__ && typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(), requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), + (executionContext = suspendedRetryLanes), + (currentUpdatePriority = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - (transitions = rootDoesHavePassiveEffects) - ? ((rootDoesHavePassiveEffects = !1), + (transitions = spawnedLane) + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : (releaseRootPooledCache(root, remainingLanes), @@ -13157,7 +13160,6 @@ __DEV__ && transitions || commitDoubleInvokeEffectsInDEV(root, !1); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -13165,16 +13167,17 @@ __DEV__ && finishedWork++ ) (remainingLanes = recoverableErrors[finishedWork]), - (transitions = makeErrorInfo(remainingLanes.stack)), + (spawnedLane = makeErrorInfo(remainingLanes.stack)), runWithFiberInDEV( remainingLanes.source, renderPriorityLevel, remainingLanes.value, - transitions + spawnedLane ); 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) @@ -17138,7 +17141,6 @@ __DEV__ && RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -17460,10 +17462,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; 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 f994d7f596431..7737fee17e28e 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<> + * @generated SignedSource<<984bb256b5ad155121b0f65f811da48e>> */ "use strict"; @@ -9298,7 +9298,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -10134,9 +10133,6 @@ function commitRootImpl( throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -10150,42 +10146,47 @@ function commitRootImpl( root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), + (updatedLanes = currentUpdatePriority), (currentUpdatePriority = 2), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= 4), commitBeforeMutationEffects(root, finishedWork), commitMutationEffectsOnFiber(finishedWork, root), (root.current = finishedWork), commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), + (executionContext = suspendedRetryLanes), + (currentUpdatePriority = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), + spawnedLane + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : releaseRootPooledCache(root, remainingLanes); remainingLanes = root.pendingLanes; 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -10199,6 +10200,7 @@ function commitRootImpl( 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) ? root === rootWithNestedUpdates @@ -11093,10 +11095,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1210 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1210.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 4fed8fdfeeba8..1a5c79b5155e5 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<<644c8527676835007c243c3966a9df0e>> */ "use strict"; @@ -9825,7 +9825,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -10738,9 +10737,6 @@ function commitRootImpl( throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -10754,24 +10750,30 @@ function commitRootImpl( root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), + (updatedLanes = currentUpdatePriority), (currentUpdatePriority = 2), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= 4), commitBeforeMutationEffects(root, finishedWork), commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate), @@ -10786,12 +10788,12 @@ function commitRootImpl( "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(), requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), + (executionContext = suspendedRetryLanes), + (currentUpdatePriority = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), + spawnedLane + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : releaseRootPooledCache(root, remainingLanes); @@ -10799,7 +10801,6 @@ function commitRootImpl( 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -10813,6 +10814,7 @@ function commitRootImpl( 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) ? ((nestedUpdateScheduled = !0), @@ -11750,10 +11752,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1298 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1298.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 ff475b4c2dc4c..fa21de35ce229 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<<7169cf01e1a9e9b449eb7747fce256d7>> + * @generated SignedSource<> */ "use strict"; @@ -13450,9 +13450,6 @@ __DEV__ && throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -13466,24 +13463,30 @@ __DEV__ && root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), + (updatedLanes = currentUpdatePriority), (currentUpdatePriority = DiscreteEventPriority), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= CommitContext), commitBeforeMutationEffects(root, finishedWork), commitMutationEffects( @@ -13504,12 +13507,12 @@ __DEV__ && typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(), requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), + (executionContext = suspendedRetryLanes), + (currentUpdatePriority = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - (transitions = rootDoesHavePassiveEffects) - ? ((rootDoesHavePassiveEffects = !1), + (transitions = spawnedLane) + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : (releaseRootPooledCache(root, remainingLanes), @@ -13520,7 +13523,6 @@ __DEV__ && transitions || commitDoubleInvokeEffectsInDEV(root, !1); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -13528,16 +13530,17 @@ __DEV__ && finishedWork++ ) (remainingLanes = recoverableErrors[finishedWork]), - (transitions = makeErrorInfo(remainingLanes.stack)), + (spawnedLane = makeErrorInfo(remainingLanes.stack)), runWithFiberInDEV( remainingLanes.source, renderPriorityLevel, remainingLanes.value, - transitions + spawnedLane ); 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) @@ -17576,7 +17579,6 @@ __DEV__ && RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -17683,11 +17685,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.1.0-native-fb-f5077bcc-20241217" !== isomorphicReactPackageVersion) + if ("19.1.0-native-fb-facec3ee-20241217" !== 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.1.0-native-fb-f5077bcc-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.1.0-native-fb-facec3ee-20241217\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -17713,10 +17715,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; 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 92a59acca0696..bc3acbd19e9a6 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<<8cb4387dd17f50443970a45186d2993a>> + * @generated SignedSource<> */ "use strict"; @@ -9730,7 +9730,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -10568,9 +10567,6 @@ function commitRootImpl( throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -10584,42 +10580,47 @@ function commitRootImpl( root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), + (updatedLanes = currentUpdatePriority), (currentUpdatePriority = 2), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= 4), commitBeforeMutationEffects(root, finishedWork), commitMutationEffectsOnFiber(finishedWork, root), (root.current = finishedWork), commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), + (executionContext = suspendedRetryLanes), + (currentUpdatePriority = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), + spawnedLane + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : releaseRootPooledCache(root, remainingLanes); remainingLanes = root.pendingLanes; 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -10633,6 +10634,7 @@ function commitRootImpl( 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) ? root === rootWithNestedUpdates @@ -11225,11 +11227,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.1.0-native-fb-f5077bcc-20241217" !== isomorphicReactPackageVersion) +if ("19.1.0-native-fb-facec3ee-20241217" !== 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.1.0-native-fb-f5077bcc-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.1.0-native-fb-facec3ee-20241217\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11278,10 +11280,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1276 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1276.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 021eee866fc89..da3f5eb5069c7 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<<90e00b9beb6854309f80c037719b3fa7>> + * @generated SignedSource<<507eaf6716e975f999ecadd3408434ef>> */ "use strict"; @@ -10256,7 +10256,6 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, - rootDoesHavePassiveEffects = !1, rootWithPendingPassiveEffects = null, pendingPassiveEffectsLanes = 0, pendingPassiveEffectsRemainingLanes = 0, @@ -11171,9 +11170,6 @@ function commitRootImpl( throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); - root.callbackNode = null; - root.callbackPriority = 0; - root.cancelPendingCommit = null; var remainingLanes = finishedWork.lanes | finishedWork.childLanes; remainingLanes |= concurrentlyUpdatedLanes; markRootFinished( @@ -11187,24 +11183,30 @@ function commitRootImpl( root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === (finishedWork.subtreeFlags & 10256) && - 0 === (finishedWork.flags & 10256)) || - rootDoesHavePassiveEffects || - ((rootDoesHavePassiveEffects = !0), - (pendingPassiveEffectsRemainingLanes = remainingLanes), - (pendingPassiveTransitions = transitions), - scheduleCallback(NormalPriority$1, function () { - flushPassiveEffects(!0); - return null; - })); + spawnedLane = !1; + 0 !== (finishedWork.subtreeFlags & 10256) || + 0 !== (finishedWork.flags & 10256) + ? ((spawnedLane = !0), + (pendingPassiveEffectsRemainingLanes = remainingLanes), + (pendingPassiveTransitions = transitions), + (root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null), + scheduleCallback(NormalPriority$1, function () { + flushPassiveEffects(!0); + return null; + })) + : ((root.callbackNode = null), + (root.callbackPriority = 0), + (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), - (spawnedLane = currentUpdatePriority), + (updatedLanes = currentUpdatePriority), (currentUpdatePriority = 2), - (updatedLanes = executionContext), + (suspendedRetryLanes = executionContext), (executionContext |= 4), commitBeforeMutationEffects(root, finishedWork), commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate), @@ -11219,12 +11221,12 @@ function commitRootImpl( "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(), requestPaint(), - (executionContext = updatedLanes), - (currentUpdatePriority = spawnedLane), + (executionContext = suspendedRetryLanes), + (currentUpdatePriority = updatedLanes), (ReactSharedInternals.T = transitions)) : (root.current = finishedWork); - rootDoesHavePassiveEffects - ? ((rootDoesHavePassiveEffects = !1), + spawnedLane + ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) : releaseRootPooledCache(root, remainingLanes); @@ -11232,7 +11234,6 @@ function commitRootImpl( 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); - ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( renderPriorityLevel = root.onRecoverableError, finishedWork = 0; @@ -11246,6 +11247,7 @@ function commitRootImpl( 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); + ensureRootIsScheduled(root); remainingLanes = root.pendingLanes; 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42) ? ((nestedUpdateScheduled = !0), @@ -11881,11 +11883,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.1.0-native-fb-f5077bcc-20241217" !== isomorphicReactPackageVersion) +if ("19.1.0-native-fb-facec3ee-20241217" !== 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.1.0-native-fb-f5077bcc-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.1.0-native-fb-facec3ee-20241217\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11934,10 +11936,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1364 = { bundleType: 0, - version: "19.1.0-native-fb-f5077bcc-20241217", + version: "19.1.0-native-fb-facec3ee-20241217", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-f5077bcc-20241217" + reconcilerVersion: "19.1.0-native-fb-facec3ee-20241217" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1364.rendererConfig = extraDevToolsConfig);