Remove unused lastFullyObservedContext (#31435)

DiffTrain build for [66855b9637](https://github.com/facebook/react/commit/66855b96378daedb1405e83f2365e0d90966ea0e)
This commit is contained in:
sophiebits
2024-11-06 07:42:34 -08:00
parent e7265498ae
commit f2a54ca827
23 changed files with 370 additions and 505 deletions
+1 -1
View File
@@ -1 +1 @@
19.0.0-native-fb-31496856-20241106
19.0.0-native-fb-66855b96-20241106
@@ -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";
})();
@@ -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";
@@ -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";
@@ -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";
})();
@@ -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";
@@ -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";
@@ -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 &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a929fc78ac380682a324a137e841bb3a>>
* @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";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0e615a122a76bb734d2d5f25f3753378>>
* @generated SignedSource<<a8ebeede504c5798cc6dac4455147324>>
*/
/*
@@ -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 &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0b1063ce239f30cc45bb40bdd8b26fb1>>
* @generated SignedSource<<ba70e772a15573b287ef49ea1e302bfa>>
*/
"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";
})();
@@ -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";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<3624da0be9dc38e05b533766e2f84d1f>>
* @generated SignedSource<<adcccc3996fd40f8736770bf09f83362>>
*/
"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";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c39e66af0affffd6736d63af784b3c47>>
* @generated SignedSource<<d7ced068e8aad6bbd6cfd5359ed08656>>
*/
"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 &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c59890d7f226fcd3ef289b077f3fbd0c>>
* @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";
@@ -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 &&
@@ -1 +1 @@
314968561b547957c76c9d7be3620e38f87770d4
66855b96378daedb1405e83f2365e0d90966ea0e
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<acbf1132416218a6ed144913162215c1>>
* @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);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a959a8f9590d6b5f6bee8000c72448eb>>
* @generated SignedSource<<b9b3def63398f5b2ee3b21c93b7aeb32>>
*/
"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) {
@@ -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) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b4d7d5fd7d79f70e11ebfe68ea0a37b1>>
* @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);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a26db7d519812b90b8b3ca167c737372>>
* @generated SignedSource<<eb0fdaa0db5821a9e0368d05ba036a66>>
*/
"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) {
@@ -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) {