From f2a54ca8276349e09de608d1cca0992cd8182bc5 Mon Sep 17 00:00:00 2001 From: sophiebits Date: Wed, 6 Nov 2024 07:42:34 -0800 Subject: [PATCH] Remove unused lastFullyObservedContext (#31435) DiffTrain build for [66855b96378daedb1405e83f2365e0d90966ea0e](https://github.com/facebook/react/commit/66855b96378daedb1405e83f2365e0d90966ea0e) --- compiled-rn/VERSION_NATIVE_FB | 2 +- .../react/react-dom/cjs/ReactDOM-dev.js | 4 +- .../react/react-dom/cjs/ReactDOM-prod.js | 4 +- .../react/react-dom/cjs/ReactDOM-profiling.js | 4 +- .../react/react-dom/cjs/ReactDOMClient-dev.js | 51 +++++++-------- .../react-dom/cjs/ReactDOMClient-prod.js | 62 ++++++++---------- .../react-dom/cjs/ReactDOMClient-profiling.js | 58 +++++++---------- .../react-dom/cjs/ReactDOMProfiling-dev.js | 51 +++++++-------- .../react-dom/cjs/ReactDOMProfiling-prod.js | 62 ++++++++---------- .../cjs/ReactDOMProfiling-profiling.js | 58 +++++++---------- .../cjs/ReactTestRenderer-dev.js | 47 ++++++-------- .../cjs/ReactTestRenderer-prod.js | 64 ++++++++----------- .../cjs/ReactTestRenderer-profiling.js | 60 ++++++++--------- .../vendor/react/react/cjs/React-dev.js | 4 +- .../vendor/react/react/cjs/React-prod.js | 4 +- .../vendor/react/react/cjs/React-profiling.js | 4 +- .../Libraries/Renderer/REVISION | 2 +- .../implementations/ReactFabric-dev.fb.js | 45 ++++++------- .../implementations/ReactFabric-prod.fb.js | 58 +++++++---------- .../ReactFabric-profiling.fb.js | 58 +++++++---------- .../ReactNativeRenderer-dev.fb.js | 49 ++++++-------- .../ReactNativeRenderer-prod.fb.js | 62 ++++++++---------- .../ReactNativeRenderer-profiling.fb.js | 62 ++++++++---------- 23 files changed, 370 insertions(+), 505 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index 0c4a1261f3e10..f7add83295b01 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.0.0-native-fb-31496856-20241106 \ No newline at end of file +19.0.0-native-fb-66855b96-20241106 \ 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 b86b031bdb193..ce5d438c88c07 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<<3a4aa78aa340528e4b1179f67d0afe39>> + * @generated SignedSource<<41e8d2e26be06713675a9eaf0808b2ad>> */ "use strict"; @@ -420,5 +420,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-native-fb-31496856-20241106"; + exports.version = "19.0.0-native-fb-66855b96-20241106"; })(); 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 57570dd5805ea..a6c06c304651c 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<<41bb5292902905fd6f742da06dbd263a>> + * @generated SignedSource<<67f9de1fb639337086bdff0fcfe5c8fe>> */ "use strict"; @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; 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 57570dd5805ea..a6c06c304651c 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<<41bb5292902905fd6f742da06dbd263a>> + * @generated SignedSource<<67f9de1fb639337086bdff0fcfe5c8fe>> */ "use strict"; @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; 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 738915c48010c..9044020279f7a 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<<5c7c07a82d9e7ddd3dafe23a1c8f6bbf>> + * @generated SignedSource<<7614057aa0ac463da717b29ec88bf13e>> */ /* @@ -10616,10 +10616,7 @@ __DEV__ && ); } function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; + lastContextDependency = currentlyRenderingFiber = null; isDisallowedContextReadInDEV = !1; } function pushProvider(providerFiber, context, nextValue) { @@ -10794,7 +10791,7 @@ __DEV__ && } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -10811,23 +10808,20 @@ __DEV__ && } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { - lanes: 0, - firstContext: context, - _debugThenableState: null - }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { + lanes: 0, + firstContext: context, + _debugThenableState: null + }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } function initializeUpdateQueue(fiber) { @@ -24677,7 +24671,6 @@ __DEV__ && var rendererSigil = {}; var currentlyRenderingFiber = null, lastContextDependency = null, - lastFullyObservedContext = null, isDisallowedContextReadInDEV = !1, UpdateState = 0, ReplaceState = 1, @@ -25337,11 +25330,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-native-fb-31496856-20241106" !== isomorphicReactPackageVersion) + if ("19.0.0-native-fb-66855b96-20241106" !== 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.0.0-native-fb-31496856-20241106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-native-fb-66855b96-20241106\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25378,11 +25371,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25526,5 +25519,5 @@ __DEV__ && listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-native-fb-31496856-20241106"; + exports.version = "19.0.0-native-fb-66855b96-20241106"; })(); 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 9ec52dde66d8d..59d72b8caa012 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<<553087126eb89b6aa26ee83eedb9ef11>> + * @generated SignedSource<<38668b12aae1b91e6fc1959969bfecd9>> */ /* @@ -7452,14 +7452,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue); context._currentValue = nextValue; @@ -7602,7 +7595,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7615,16 +7608,13 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) throw Error(formatProdErrorMessage(308)); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) throw Error(formatProdErrorMessage(308)); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var hasForceUpdate = !1; @@ -11101,7 +11091,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -11267,7 +11257,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -11382,7 +11372,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$172); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -11449,7 +11439,7 @@ function throwAndUnwindWorkLoop( thrownValue, suspendedReason ) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -15626,14 +15616,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1691 = React.version; if ( - "19.0.0-native-fb-31496856-20241106" !== + "19.0.0-native-fb-66855b96-20241106" !== isomorphicReactPackageVersion$jscomp$inline_1691 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1691, - "19.0.0-native-fb-31496856-20241106" + "19.0.0-native-fb-66855b96-20241106" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15653,25 +15643,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2145 = { +var internals$jscomp$inline_2149 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2146 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2150 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2146.isDisabled && - hook$jscomp$inline_2146.supportsFiber + !hook$jscomp$inline_2150.isDisabled && + hook$jscomp$inline_2150.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2146.inject( - internals$jscomp$inline_2145 + (rendererID = hook$jscomp$inline_2150.inject( + internals$jscomp$inline_2149 )), - (injectedHook = hook$jscomp$inline_2146); + (injectedHook = hook$jscomp$inline_2150); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15763,4 +15753,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; 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 240e5616abaa7..f2f7e3565f518 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<<3b44363b208888f9d355d23ce7e1ae67>> + * @generated SignedSource<<60dee5299bc7a16503263a35dd60f6c3>> */ /* @@ -7651,14 +7651,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue); context._currentValue = nextValue; @@ -7801,7 +7794,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7814,16 +7807,13 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) throw Error(formatProdErrorMessage(308)); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) throw Error(formatProdErrorMessage(308)); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var hasForceUpdate = !1; @@ -11639,7 +11629,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -11844,7 +11834,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -11970,7 +11960,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$187); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -12055,7 +12045,7 @@ function throwAndUnwindWorkLoop( thrownValue, suspendedReason ) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -16283,14 +16273,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1781 = React.version; if ( - "19.0.0-native-fb-31496856-20241106" !== + "19.0.0-native-fb-66855b96-20241106" !== isomorphicReactPackageVersion$jscomp$inline_1781 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1781, - "19.0.0-native-fb-31496856-20241106" + "19.0.0-native-fb-66855b96-20241106" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16312,11 +16302,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_1788 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106", + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$286 = 0; @@ -16334,16 +16324,16 @@ var internals$jscomp$inline_1788 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2197 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2201 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2197.isDisabled && - hook$jscomp$inline_2197.supportsFiber + !hook$jscomp$inline_2201.isDisabled && + hook$jscomp$inline_2201.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2197.inject( + (rendererID = hook$jscomp$inline_2201.inject( internals$jscomp$inline_1788 )), - (injectedHook = hook$jscomp$inline_2197); + (injectedHook = hook$jscomp$inline_2201); } catch (err) {} } exports.createRoot = function (container, options) { @@ -16435,4 +16425,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; 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 b9457bc24b665..13cfd50bfa7b3 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<<2a097b4a31cc4681184745f6e3c96df8>> + * @generated SignedSource<<532b066c9a1d12247edce4e991f2b6f2>> */ /* @@ -10624,10 +10624,7 @@ __DEV__ && ); } function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; + lastContextDependency = currentlyRenderingFiber = null; isDisallowedContextReadInDEV = !1; } function pushProvider(providerFiber, context, nextValue) { @@ -10802,7 +10799,7 @@ __DEV__ && } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -10819,23 +10816,20 @@ __DEV__ && } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { - lanes: 0, - firstContext: context, - _debugThenableState: null - }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { + lanes: 0, + firstContext: context, + _debugThenableState: null + }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } function initializeUpdateQueue(fiber) { @@ -24738,7 +24732,6 @@ __DEV__ && var rendererSigil = {}; var currentlyRenderingFiber = null, lastContextDependency = null, - lastFullyObservedContext = null, isDisallowedContextReadInDEV = !1, UpdateState = 0, ReplaceState = 1, @@ -25398,11 +25391,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-native-fb-31496856-20241106" !== isomorphicReactPackageVersion) + if ("19.0.0-native-fb-66855b96-20241106" !== 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.0.0-native-fb-31496856-20241106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-native-fb-66855b96-20241106\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25439,11 +25432,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25903,7 +25896,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-native-fb-31496856-20241106"; + exports.version = "19.0.0-native-fb-66855b96-20241106"; "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 7ac77ef53621c..500d4f4ebd738 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<> + * @generated SignedSource<<94539d5f2ac9ad00115a4aa0eff67fb8>> */ /* @@ -7452,14 +7452,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue); context._currentValue = nextValue; @@ -7602,7 +7595,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7615,16 +7608,13 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) throw Error(formatProdErrorMessage(308)); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) throw Error(formatProdErrorMessage(308)); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var hasForceUpdate = !1; @@ -11101,7 +11091,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -11267,7 +11257,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -11382,7 +11372,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$172); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -11449,7 +11439,7 @@ function throwAndUnwindWorkLoop( thrownValue, suspendedReason ) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -15637,14 +15627,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1692 = React.version; if ( - "19.0.0-native-fb-31496856-20241106" !== + "19.0.0-native-fb-66855b96-20241106" !== isomorphicReactPackageVersion$jscomp$inline_1692 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1692, - "19.0.0-native-fb-31496856-20241106" + "19.0.0-native-fb-66855b96-20241106" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15664,25 +15654,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2148 = { +var internals$jscomp$inline_2152 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2149 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2153 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2149.isDisabled && - hook$jscomp$inline_2149.supportsFiber + !hook$jscomp$inline_2153.isDisabled && + hook$jscomp$inline_2153.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2149.inject( - internals$jscomp$inline_2148 + (rendererID = hook$jscomp$inline_2153.inject( + internals$jscomp$inline_2152 )), - (injectedHook = hook$jscomp$inline_2149); + (injectedHook = hook$jscomp$inline_2153); } catch (err) {} } function noop() {} @@ -15928,4 +15918,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; 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 5662893c21d9e..a4a9331dc4cae 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<<0e615a122a76bb734d2d5f25f3753378>> + * @generated SignedSource<> */ /* @@ -7655,14 +7655,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue); context._currentValue = nextValue; @@ -7805,7 +7798,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7818,16 +7811,13 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) throw Error(formatProdErrorMessage(308)); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) throw Error(formatProdErrorMessage(308)); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var hasForceUpdate = !1; @@ -11643,7 +11633,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -11848,7 +11838,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -11974,7 +11964,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$187); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -12059,7 +12049,7 @@ function throwAndUnwindWorkLoop( thrownValue, suspendedReason ) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -16298,14 +16288,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_1782 = React.version; if ( - "19.0.0-native-fb-31496856-20241106" !== + "19.0.0-native-fb-66855b96-20241106" !== isomorphicReactPackageVersion$jscomp$inline_1782 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1782, - "19.0.0-native-fb-31496856-20241106" + "19.0.0-native-fb-66855b96-20241106" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16327,11 +16317,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_1789 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106", + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$286 = 0; @@ -16349,16 +16339,16 @@ var internals$jscomp$inline_1789 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2200 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2204 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2200.isDisabled && - hook$jscomp$inline_2200.supportsFiber + !hook$jscomp$inline_2204.isDisabled && + hook$jscomp$inline_2204.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2200.inject( + (rendererID = hook$jscomp$inline_2204.inject( internals$jscomp$inline_1789 )), - (injectedHook = hook$jscomp$inline_2200); + (injectedHook = hook$jscomp$inline_2204); } catch (err) {} } function noop() {} @@ -16604,7 +16594,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; "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 5ad223983015e..86ef44c287dac 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<0b1063ce239f30cc45bb40bdd8b26fb1>> + * @generated SignedSource<> */ "use strict"; @@ -7792,10 +7792,7 @@ __DEV__ && ); } function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; + lastContextDependency = currentlyRenderingFiber = null; isDisallowedContextReadInDEV = !1; } function pushProvider(providerFiber, context, nextValue) { @@ -7970,7 +7967,7 @@ __DEV__ && } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7987,23 +7984,20 @@ __DEV__ && } function readContextForConsumer(consumer, context) { var value = context._currentValue2; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { - lanes: 0, - firstContext: context, - _debugThenableState: null - }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { + lanes: 0, + firstContext: context, + _debugThenableState: null + }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } function createCache() { @@ -14771,7 +14765,6 @@ __DEV__ && var rendererSigil = {}; var currentlyRenderingFiber = null, lastContextDependency = null, - lastFullyObservedContext = null, isDisallowedContextReadInDEV = !1, AbortControllerLocal = "undefined" !== typeof AbortController @@ -15121,11 +15114,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15270,5 +15263,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.0.0-native-fb-31496856-20241106"; + exports.version = "19.0.0-native-fb-66855b96-20241106"; })(); 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 e98d9f46a3dcb..cbb83392ad712 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<<033c869228f8551de82728091c33b4aa>> + * @generated SignedSource<<16d25d9766f9e175dbafcc8ba8d7118a>> */ "use strict"; @@ -5545,14 +5545,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue2); context._currentValue2 = nextValue; @@ -5700,7 +5693,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -5713,19 +5706,16 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue2; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var AbortControllerLocal = @@ -8113,7 +8103,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -8265,7 +8255,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -8377,7 +8367,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$124); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -8439,7 +8429,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -9477,28 +9467,28 @@ function wrapFiber(fiber) { fiberToWrapper.set(fiber, wrapper)); return wrapper; } -var internals$jscomp$inline_1344 = { +var internals$jscomp$inline_1348 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function (mockNode) { mockNode = nodeToInstanceMap.get(mockNode); return void 0 !== mockNode ? mockNode.internalInstanceHandle : null; }, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1345 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1349 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1345.isDisabled && - hook$jscomp$inline_1345.supportsFiber + !hook$jscomp$inline_1349.isDisabled && + hook$jscomp$inline_1349.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1345.inject( - internals$jscomp$inline_1344 + (rendererID = hook$jscomp$inline_1349.inject( + internals$jscomp$inline_1348 )), - (injectedHook = hook$jscomp$inline_1345); + (injectedHook = hook$jscomp$inline_1349); } catch (err) {} } exports._Scheduler = Scheduler; @@ -9622,4 +9612,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; 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 843c94caf7c7b..b49c30e125b6b 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<<3624da0be9dc38e05b533766e2f84d1f>> + * @generated SignedSource<> */ "use strict"; @@ -5714,14 +5714,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue2); context._currentValue2 = nextValue; @@ -5869,7 +5862,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -5882,19 +5875,16 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue2; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var AbortControllerLocal = @@ -8583,7 +8573,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -8764,7 +8754,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -8878,7 +8868,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$137); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -8958,7 +8948,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -10047,14 +10037,14 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1158 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function (mockNode) { mockNode = nodeToInstanceMap.get(mockNode); return void 0 !== mockNode ? mockNode.internalInstanceHandle : null; }, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106", + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$141 = 0; @@ -10072,16 +10062,16 @@ var internals$jscomp$inline_1158 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1401 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1405 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1401.isDisabled && - hook$jscomp$inline_1401.supportsFiber + !hook$jscomp$inline_1405.isDisabled && + hook$jscomp$inline_1405.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1401.inject( + (rendererID = hook$jscomp$inline_1405.inject( internals$jscomp$inline_1158 )), - (injectedHook = hook$jscomp$inline_1401); + (injectedHook = hook$jscomp$inline_1405); } catch (err) {} } exports._Scheduler = Scheduler; @@ -10205,4 +10195,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; 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 eb2d38883fa9a..946d3f7743f4b 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<> + * @generated SignedSource<> */ "use strict"; @@ -1694,7 +1694,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-native-fb-31496856-20241106"; + exports.version = "19.0.0-native-fb-66855b96-20241106"; "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 9787f5f3a4ea6..3607afac059f3 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<4b1303cfa3a89efb80819c9f6b72d88e>> */ "use strict"; @@ -580,4 +580,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; 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 a2a06b7719fb8..d4ccf7fda1958 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<<68e08ea35208bb57ae99fafd59b1c9ae>> + * @generated SignedSource<<1833c6f4c1213422629efe4c5c2b8b36>> */ "use strict"; @@ -584,7 +584,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-native-fb-31496856-20241106"; +exports.version = "19.0.0-native-fb-66855b96-20241106"; "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 078ad9c6b01bf..92bf7c270689f 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 @@ -314968561b547957c76c9d7be3620e38f87770d4 +66855b96378daedb1405e83f2365e0d90966ea0e 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 188bc401bbbfb..ce322b151bf0a 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<> + * @generated SignedSource<<0922021d258f30848435e9886380fd0b>> */ "use strict"; @@ -8727,10 +8727,7 @@ __DEV__ && ); } function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; + lastContextDependency = currentlyRenderingFiber = null; isDisallowedContextReadInDEV = !1; } function pushProvider(providerFiber, context, nextValue) { @@ -8905,7 +8902,7 @@ __DEV__ && } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -8922,23 +8919,20 @@ __DEV__ && } function readContextForConsumer(consumer, context) { var value = context._currentValue2; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { - lanes: 0, - firstContext: context, - _debugThenableState: null - }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { + lanes: 0, + firstContext: context, + _debugThenableState: null + }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } function createCache() { @@ -16525,7 +16519,6 @@ __DEV__ && var rendererSigil = {}; var currentlyRenderingFiber = null, lastContextDependency = null, - lastFullyObservedContext = null, isDisallowedContextReadInDEV = !1, AbortControllerLocal = "undefined" !== typeof AbortController @@ -16960,11 +16953,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; 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 90d83b93d0677..5cb532d755b5d 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<> */ "use strict"; @@ -6855,14 +6855,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue2); context._currentValue2 = nextValue; @@ -7010,7 +7003,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7023,19 +7016,16 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue2; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var AbortControllerLocal = @@ -9452,7 +9442,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -9619,7 +9609,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -9737,7 +9727,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$129); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -9804,7 +9794,7 @@ function throwAndUnwindWorkLoop( thrownValue, suspendedReason ) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -10896,25 +10886,25 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1170 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1170.rendererConfig = extraDevToolsConfig); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1482 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1486 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1482.isDisabled && - hook$jscomp$inline_1482.supportsFiber + !hook$jscomp$inline_1486.isDisabled && + hook$jscomp$inline_1486.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1482.inject( + (rendererID = hook$jscomp$inline_1486.inject( internals$jscomp$inline_1170 )), - (injectedHook = hook$jscomp$inline_1482); + (injectedHook = hook$jscomp$inline_1486); } catch (err) {} } exports.createPortal = function (children, containerTag) { 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 b2bd4f8c9dea1..c2cfc415d3832 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<<6de275d1d7154a43ca2a4f25aac27f4d>> + * @generated SignedSource<<45d4af3d6b1b5387a220efc64647e218>> */ "use strict"; @@ -7059,14 +7059,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue2); context._currentValue2 = nextValue; @@ -7214,7 +7207,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7227,19 +7220,16 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue2; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var AbortControllerLocal = @@ -9982,7 +9972,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -10188,7 +10178,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -10317,7 +10307,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$144); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -10402,7 +10392,7 @@ function throwAndUnwindWorkLoop( thrownValue, suspendedReason ) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -11557,11 +11547,11 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1258 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1258.rendererConfig = extraDevToolsConfig); @@ -11581,16 +11571,16 @@ internals$jscomp$inline_1258.injectProfilingHooks = function (profilingHooks) { injectedProfilingHooks = profilingHooks; }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1533 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1537 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1533.isDisabled && - hook$jscomp$inline_1533.supportsFiber + !hook$jscomp$inline_1537.isDisabled && + hook$jscomp$inline_1537.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1533.inject( + (rendererID = hook$jscomp$inline_1537.inject( internals$jscomp$inline_1258 )), - (injectedHook = hook$jscomp$inline_1533); + (injectedHook = hook$jscomp$inline_1537); } catch (err) {} } exports.createPortal = function (children, containerTag) { 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 cf4e7b53e4889..37bf8fe1b2f1f 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<> + * @generated SignedSource<<2c0a10988940f0ef62c07e498682fecd>> */ "use strict"; @@ -8956,10 +8956,7 @@ __DEV__ && ); } function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; + lastContextDependency = currentlyRenderingFiber = null; isDisallowedContextReadInDEV = !1; } function pushProvider(providerFiber, context, nextValue) { @@ -9134,7 +9131,7 @@ __DEV__ && } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -9151,23 +9148,20 @@ __DEV__ && } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { - lanes: 0, - firstContext: context, - _debugThenableState: null - }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { + lanes: 0, + firstContext: context, + _debugThenableState: null + }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } function createCache() { @@ -16954,7 +16948,6 @@ __DEV__ && var rendererSigil = {}; var currentlyRenderingFiber = null, lastContextDependency = null, - lastFullyObservedContext = null, isDisallowedContextReadInDEV = !1, AbortControllerLocal = "undefined" !== typeof AbortController @@ -17181,11 +17174,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.0.0-native-fb-31496856-20241106" !== isomorphicReactPackageVersion) + if ("19.0.0-native-fb-66855b96-20241106" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-31496856-20241106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-66855b96-20241106\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -17211,11 +17204,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromTag, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; 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 8bde94d9a61e6..7764fc0b4ac6c 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<> + * @generated SignedSource<> */ "use strict"; @@ -7150,14 +7150,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue); context._currentValue = nextValue; @@ -7305,7 +7298,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7318,19 +7311,16 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var AbortControllerLocal = @@ -9886,7 +9876,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -10053,7 +10043,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -10171,7 +10161,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$133); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -10238,7 +10228,7 @@ function throwAndUnwindWorkLoop( thrownValue, suspendedReason ) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -11027,11 +11017,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.0.0-native-fb-31496856-20241106" !== isomorphicReactPackageVersion) +if ("19.0.0-native-fb-66855b96-20241106" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-31496856-20241106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-66855b96-20241106\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11080,25 +11070,25 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1236 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromTag, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1236.rendererConfig = extraDevToolsConfig); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1569 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1573 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1569.isDisabled && - hook$jscomp$inline_1569.supportsFiber + !hook$jscomp$inline_1573.isDisabled && + hook$jscomp$inline_1573.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1569.inject( + (rendererID = hook$jscomp$inline_1573.inject( internals$jscomp$inline_1236 )), - (injectedHook = hook$jscomp$inline_1569); + (injectedHook = hook$jscomp$inline_1573); } catch (err) {} } exports.createPortal = function (children, containerTag) { 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 3fa60767dd348..e8401cbdb2ecb 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<<96423599eae0172660f49506ee28f2cf>> + * @generated SignedSource<<1ad2ae5c7b17a5357f4c3a6b4aabe91f>> */ "use strict"; @@ -7354,14 +7354,7 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null), currentlyRenderingFiber = null, - lastContextDependency = null, - lastFullyObservedContext = null; -function resetContextDependencies() { - lastFullyObservedContext = - lastContextDependency = - currentlyRenderingFiber = - null; -} + lastContextDependency = null; function pushProvider(providerFiber, context, nextValue) { push(valueCursor, context._currentValue); context._currentValue = nextValue; @@ -7509,7 +7502,7 @@ function checkIfContextChanged(currentDependencies) { } function prepareToReadContext(workInProgress) { currentlyRenderingFiber = workInProgress; - lastFullyObservedContext = lastContextDependency = null; + lastContextDependency = null; workInProgress = workInProgress.dependencies; null !== workInProgress && (workInProgress.firstContext = null); } @@ -7522,19 +7515,16 @@ function readContextDuringReconciliation(consumer, context) { } function readContextForConsumer(consumer, context) { var value = context._currentValue; - if (lastFullyObservedContext !== context) - if ( - ((context = { context: context, memoizedValue: value, next: null }), - null === lastContextDependency) - ) { - if (null === consumer) - throw Error( - "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." - ); - lastContextDependency = context; - consumer.dependencies = { lanes: 0, firstContext: context }; - consumer.flags |= 524288; - } else lastContextDependency = lastContextDependency.next = context; + context = { context: context, memoizedValue: value, next: null }; + if (null === lastContextDependency) { + if (null === consumer) + throw Error( + "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." + ); + lastContextDependency = context; + consumer.dependencies = { lanes: 0, firstContext: context }; + consumer.flags |= 524288; + } else lastContextDependency = lastContextDependency.next = context; return value; } var AbortControllerLocal = @@ -10415,7 +10405,7 @@ function resetWorkInProgressStack() { var interruptedWork = workInProgress.return; else (interruptedWork = workInProgress), - resetContextDependencies(), + (lastContextDependency = currentlyRenderingFiber = null), resetHooksOnUnwind(interruptedWork), (thenableState$1 = null), (thenableIndexCounter$1 = 0), @@ -10621,7 +10611,7 @@ function renderRootSync(root, lanes) { } while (1); lanes && root.shellSuspendCounter++; - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; @@ -10750,7 +10740,7 @@ function renderRootConcurrent(root, lanes) { handleThrow(root, thrownValue$148); } while (1); - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; executionContext = prevExecutionContext; @@ -10835,7 +10825,7 @@ function throwAndUnwindWorkLoop( thrownValue, suspendedReason ) { - resetContextDependencies(); + lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; thenableIndexCounter$1 = 0; @@ -11687,11 +11677,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.0.0-native-fb-31496856-20241106" !== isomorphicReactPackageVersion) +if ("19.0.0-native-fb-66855b96-20241106" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-31496856-20241106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-66855b96-20241106\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11740,11 +11730,11 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1324 = { bundleType: 0, - version: "19.0.0-native-fb-31496856-20241106", + version: "19.0.0-native-fb-66855b96-20241106", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromTag, - reconcilerVersion: "19.0.0-native-fb-31496856-20241106" + reconcilerVersion: "19.0.0-native-fb-66855b96-20241106" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1324.rendererConfig = extraDevToolsConfig); @@ -11764,16 +11754,16 @@ internals$jscomp$inline_1324.injectProfilingHooks = function (profilingHooks) { injectedProfilingHooks = profilingHooks; }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1620 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1624 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1620.isDisabled && - hook$jscomp$inline_1620.supportsFiber + !hook$jscomp$inline_1624.isDisabled && + hook$jscomp$inline_1624.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1620.inject( + (rendererID = hook$jscomp$inline_1624.inject( internals$jscomp$inline_1324 )), - (injectedHook = hook$jscomp$inline_1620); + (injectedHook = hook$jscomp$inline_1624); } catch (err) {} } exports.createPortal = function (children, containerTag) {