mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Include component name in "async/await is not supported" error message if available (#32435)
DiffTrain build for [22e39ea72e](https://github.com/facebook/react/commit/22e39ea72e9d10f6634ea580aaba49c2e759ef0e)
This commit is contained in:
@@ -1 +1 @@
|
||||
19.1.0-native-fb-25677265-20250224
|
||||
19.1.0-native-fb-22e39ea7-20250225
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<51c03329699f31a3dc0e647b87137455>>
|
||||
* @generated SignedSource<<d74cd5ab55481ade5eb24c64e6575914>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -404,5 +404,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
})();
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d1eb12151ad3ccbcc17e85f7e6ec2f48>>
|
||||
* @generated SignedSource<<f15bac883ab529ea438c8353023f4abc>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d1eb12151ad3ccbcc17e85f7e6ec2f48>>
|
||||
* @generated SignedSource<<f15bac883ab529ea438c8353023f4abc>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
|
||||
Vendored
+11
-8
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<bbcc4f3ba4aa817fbbc852bf084e8add>>
|
||||
* @generated SignedSource<<1fd06ffcb012198fdeab97d6068359ab>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -5285,7 +5285,7 @@ __DEV__ &&
|
||||
100 < thenableState.shellSuspendCounter
|
||||
)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -5485,7 +5485,10 @@ __DEV__ &&
|
||||
didWarnAboutAsyncClientComponent.has(nextRenderLanes) ||
|
||||
(didWarnAboutAsyncClientComponent.add(nextRenderLanes),
|
||||
console.error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
|
||||
null === nextRenderLanes
|
||||
? "An unknown Component"
|
||||
: "<" + nextRenderLanes + ">"
|
||||
));
|
||||
workInProgress.memoizedState = null;
|
||||
workInProgress.updateQueue = null;
|
||||
@@ -25883,11 +25886,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-native-fb-25677265-20250224" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-native-fb-22e39ea7-20250225" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.1.0-native-fb-25677265-20250224\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.1.0-native-fb-22e39ea7-20250225\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -25924,10 +25927,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -26071,5 +26074,5 @@ __DEV__ &&
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
})();
|
||||
|
||||
compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js
Vendored
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<01cb7f4be4df5102154afb4d247509e9>>
|
||||
* @generated SignedSource<<caa343da4890ccbfdf3de26c436929bc>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -16001,14 +16001,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1785 = React.version;
|
||||
if (
|
||||
"19.1.0-native-fb-25677265-20250224" !==
|
||||
"19.1.0-native-fb-22e39ea7-20250225" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1785
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1785,
|
||||
"19.1.0-native-fb-25677265-20250224"
|
||||
"19.1.0-native-fb-22e39ea7-20250225"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -16030,10 +16030,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2245 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2246 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16137,4 +16137,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<adef006cb441cc02304ead4f4f4a7f01>>
|
||||
* @generated SignedSource<<eaf75657794691164bcac5ed251d38ee>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -16651,14 +16651,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1880 = React.version;
|
||||
if (
|
||||
"19.1.0-native-fb-25677265-20250224" !==
|
||||
"19.1.0-native-fb-22e39ea7-20250225" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1880
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1880,
|
||||
"19.1.0-native-fb-25677265-20250224"
|
||||
"19.1.0-native-fb-22e39ea7-20250225"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -16680,10 +16680,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_1887 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224",
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$294 = 0;
|
||||
@@ -16802,4 +16802,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
|
||||
+11
-8
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<6b42bf9935c83b1829de9d35d79e0003>>
|
||||
* @generated SignedSource<<4ef9266a7f19a05d7079f6abf92caa6e>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -5293,7 +5293,7 @@ __DEV__ &&
|
||||
100 < thenableState.shellSuspendCounter
|
||||
)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -5493,7 +5493,10 @@ __DEV__ &&
|
||||
didWarnAboutAsyncClientComponent.has(nextRenderLanes) ||
|
||||
(didWarnAboutAsyncClientComponent.add(nextRenderLanes),
|
||||
console.error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
|
||||
null === nextRenderLanes
|
||||
? "An unknown Component"
|
||||
: "<" + nextRenderLanes + ">"
|
||||
));
|
||||
workInProgress.memoizedState = null;
|
||||
workInProgress.updateQueue = null;
|
||||
@@ -25944,11 +25947,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-native-fb-25677265-20250224" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-native-fb-22e39ea7-20250225" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.1.0-native-fb-25677265-20250224\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.1.0-native-fb-22e39ea7-20250225\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -25985,10 +25988,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -26448,7 +26451,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<f5c7ce3a6ff38e41c62f937d719b86b3>>
|
||||
* @generated SignedSource<<98df410b2f1c59df92b77d1a9e0d1142>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -16012,14 +16012,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1786 = React.version;
|
||||
if (
|
||||
"19.1.0-native-fb-25677265-20250224" !==
|
||||
"19.1.0-native-fb-22e39ea7-20250225" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1786
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1786,
|
||||
"19.1.0-native-fb-25677265-20250224"
|
||||
"19.1.0-native-fb-22e39ea7-20250225"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -16041,10 +16041,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2248 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2249 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16302,4 +16302,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<72a2d13439397c8e49d0851c20b7d541>>
|
||||
* @generated SignedSource<<a9b7f69ac62d9793c4cb5f5098ad9074>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -16666,14 +16666,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1881 = React.version;
|
||||
if (
|
||||
"19.1.0-native-fb-25677265-20250224" !==
|
||||
"19.1.0-native-fb-22e39ea7-20250225" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1881
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1881,
|
||||
"19.1.0-native-fb-25677265-20250224"
|
||||
"19.1.0-native-fb-22e39ea7-20250225"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -16695,10 +16695,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_1888 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224",
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$294 = 0;
|
||||
@@ -16971,7 +16971,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+9
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<a7e41b8c02665e90f70e40c26112e369>>
|
||||
* @generated SignedSource<<6d3bf5e5a5b4ab9a3b9fd449da95de08>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -2404,7 +2404,7 @@ __DEV__ &&
|
||||
100 < thenableState.shellSuspendCounter
|
||||
)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -2989,7 +2989,10 @@ __DEV__ &&
|
||||
didWarnAboutAsyncClientComponent.has(nextRenderLanes) ||
|
||||
(didWarnAboutAsyncClientComponent.add(nextRenderLanes),
|
||||
console.error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
|
||||
null === nextRenderLanes
|
||||
? "An unknown Component"
|
||||
: "<" + nextRenderLanes + ">"
|
||||
));
|
||||
workInProgress.memoizedState = null;
|
||||
workInProgress.updateQueue = null;
|
||||
@@ -15561,10 +15564,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15709,5 +15712,5 @@ __DEV__ &&
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
})();
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b9dd4a7e36ce25923ead25444636bef0>>
|
||||
* @generated SignedSource<<b6a14d6b2100470a85d024072e28995b>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1474,7 +1474,7 @@ function trackUsedThenable(thenableState, thenable, index) {
|
||||
thenableState = workInProgressRoot;
|
||||
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -9784,10 +9784,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1389 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1390 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -9923,4 +9923,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<ced3d8683c6be454e2c97407bbc21427>>
|
||||
* @generated SignedSource<<9dc97db56627eb4b5a0a0f9f9b145607>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1579,7 +1579,7 @@ function trackUsedThenable(thenableState, thenable, index) {
|
||||
thenableState = workInProgressRoot;
|
||||
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -10355,10 +10355,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1207 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224",
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$147 = 0;
|
||||
@@ -10509,4 +10509,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<507482ff12ae74438180e1512735d5d8>>
|
||||
* @generated SignedSource<<166ce31fdb7d6ed340d2eeed8b691ae0>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1415,7 +1415,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<63defa64ca1009f50eac62c9720167f9>>
|
||||
* @generated SignedSource<<7363f38d4106ef705ee8d1a0359ce29a>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -603,4 +603,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<95ba6c25fa51268131708a3f349b2f88>>
|
||||
* @generated SignedSource<<eff71d9ae772df31f273b5da150829ec>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -607,7 +607,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-native-fb-25677265-20250224";
|
||||
exports.version = "19.1.0-native-fb-22e39ea7-20250225";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
25677265038b89c1ee3000e0669339ed160d9d75
|
||||
22e39ea72e9d10f6634ea580aaba49c2e759ef0e
|
||||
|
||||
+8
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<f88364cd1f408a906f63ed5ed2883d91>>
|
||||
* @generated SignedSource<<04c44bc7e0ce05a4e7057d322b2ca6a1>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -3321,7 +3321,7 @@ __DEV__ &&
|
||||
100 < thenableState.shellSuspendCounter
|
||||
)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -3906,7 +3906,10 @@ __DEV__ &&
|
||||
didWarnAboutAsyncClientComponent.has(nextRenderLanes) ||
|
||||
(didWarnAboutAsyncClientComponent.add(nextRenderLanes),
|
||||
console.error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
|
||||
null === nextRenderLanes
|
||||
? "An unknown Component"
|
||||
: "<" + nextRenderLanes + ">"
|
||||
));
|
||||
workInProgress.memoizedState = null;
|
||||
workInProgress.updateQueue = null;
|
||||
@@ -17385,10 +17388,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<464b853c6e70113bf399512069d9375b>>
|
||||
* @generated SignedSource<<eebd2ef99acb698d66b78ec840602827>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -2732,7 +2732,7 @@ function trackUsedThenable(thenableState, thenable, index) {
|
||||
thenableState = workInProgressRoot;
|
||||
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -11038,10 +11038,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1221 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1221.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<a052688204c1cdbb5b923fa1c8a7b268>>
|
||||
* @generated SignedSource<<a041b0277aa49e0f2af032f94c6358a8>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -2871,7 +2871,7 @@ function trackUsedThenable(thenableState, thenable, index) {
|
||||
thenableState = workInProgressRoot;
|
||||
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -11691,10 +11691,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1314 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1314.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+10
-7
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<625a103361d0fcc296e4acfc8acbe0b4>>
|
||||
* @generated SignedSource<<66f2bb0f926f94469577ed3d9c6ba8ca>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -3445,7 +3445,7 @@ __DEV__ &&
|
||||
100 < thenableState.shellSuspendCounter
|
||||
)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -4030,7 +4030,10 @@ __DEV__ &&
|
||||
didWarnAboutAsyncClientComponent.has(nextRenderLanes) ||
|
||||
(didWarnAboutAsyncClientComponent.add(nextRenderLanes),
|
||||
console.error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
|
||||
null === nextRenderLanes
|
||||
? "An unknown Component"
|
||||
: "<" + nextRenderLanes + ">"
|
||||
));
|
||||
workInProgress.memoizedState = null;
|
||||
workInProgress.updateQueue = null;
|
||||
@@ -17559,11 +17562,11 @@ __DEV__ &&
|
||||
shouldSuspendImpl = newShouldSuspendImpl;
|
||||
};
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-native-fb-25677265-20250224" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-native-fb-22e39ea7-20250225" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.1.0-native-fb-25677265-20250224\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.1.0-native-fb-22e39ea7-20250225\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -17589,10 +17592,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<76a68ac97f754cf24dd8b3e9efff62ee>>
|
||||
* @generated SignedSource<<7e06d87114fdc46b0019d70f7723008b>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -2896,7 +2896,7 @@ function trackUsedThenable(thenableState, thenable, index) {
|
||||
thenableState = workInProgressRoot;
|
||||
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -11139,11 +11139,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-native-fb-25677265-20250224" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-native-fb-22e39ea7-20250225" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.1.0-native-fb-25677265-20250224\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.1.0-native-fb-22e39ea7-20250225\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -11192,10 +11192,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1272 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1272.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<ee1aee26fcb05e232a90b1fdb60364be>>
|
||||
* @generated SignedSource<<6e91baad58e11d1cff3f440e50ca4e1e>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -3035,7 +3035,7 @@ function trackUsedThenable(thenableState, thenable, index) {
|
||||
thenableState = workInProgressRoot;
|
||||
if (null !== thenableState && 100 < thenableState.shellSuspendCounter)
|
||||
throw Error(
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
);
|
||||
thenableState = thenable;
|
||||
thenableState.status = "pending";
|
||||
@@ -11792,11 +11792,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-native-fb-25677265-20250224" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-native-fb-22e39ea7-20250225" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.1.0-native-fb-25677265-20250224\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.1.0-native-fb-22e39ea7-20250225\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -11845,10 +11845,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1365 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-native-fb-25677265-20250224",
|
||||
version: "19.1.0-native-fb-22e39ea7-20250225",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-native-fb-25677265-20250224"
|
||||
reconcilerVersion: "19.1.0-native-fb-22e39ea7-20250225"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1365.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
Reference in New Issue
Block a user