From a8b2c8234fe76c07e64fb4eb22f50799388dc8bb Mon Sep 17 00:00:00 2001 From: rickhanlonii Date: Sun, 3 Mar 2024 22:39:44 +0000 Subject: [PATCH] Update /link URLs to react.dev (#28477) Depends on https://github.com/reactjs/react.dev/pull/6670 [merged] DiffTrain build for [1940cb27b260c2eab79c76763d1151ba18353ff8](https://github.com/facebook/react/commit/1940cb27b260c2eab79c76763d1151ba18353ff8) --- .../facebook-www/JSXDEVRuntime-dev.classic.js | 8 +- .../facebook-www/JSXDEVRuntime-dev.modern.js | 8 +- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/React-dev.classic.js | 12 +-- compiled/facebook-www/React-dev.modern.js | 12 +-- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 48 +++++----- compiled/facebook-www/ReactART-dev.modern.js | 48 +++++----- compiled/facebook-www/ReactDOM-dev.classic.js | 90 +++++++++---------- compiled/facebook-www/ReactDOM-dev.modern.js | 80 ++++++++--------- .../facebook-www/ReactDOM-profiling.modern.js | 6 +- .../ReactDOMServer-dev.classic.js | 30 +++---- .../facebook-www/ReactDOMServer-dev.modern.js | 30 +++---- .../ReactDOMServerStreaming-dev.modern.js | 28 +++--- .../ReactDOMServerStreaming-prod.modern.js | 6 +- .../ReactDOMTesting-dev.classic.js | 90 +++++++++---------- .../ReactDOMTesting-dev.modern.js | 80 ++++++++--------- .../facebook-www/ReactServer-dev.modern.js | 12 +-- .../ReactTestRenderer-dev.classic.js | 48 +++++----- .../ReactTestRenderer-dev.modern.js | 48 +++++----- .../ReactTestUtils-dev.classic.js | 2 +- .../facebook-www/ReactTestUtils-dev.modern.js | 2 +- .../__test_utils__/ReactAllWarnings.js | 82 ++++++++--------- .../facebook-www/eslint-plugin-react-hooks.js | 2 +- 26 files changed, 390 insertions(+), 390 deletions(-) diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js index 544c06e57d74d..d7bb11fa36eff 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js @@ -868,7 +868,7 @@ if (__DEV__) { "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref ); @@ -889,7 +889,7 @@ if (__DEV__) { "%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -914,7 +914,7 @@ if (__DEV__) { "%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -1414,7 +1414,7 @@ if (__DEV__) { error( 'Each child in a list should have a unique "key" prop.' + - "%s%s See https://reactjs.org/link/warning-keys for more information.", + "%s%s See https://react.dev/link/warning-keys for more information.", currentComponentErrorInfo, childOwner ); diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js index 877685d8b495b..7815d7cbc84cb 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js @@ -868,7 +868,7 @@ if (__DEV__) { "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref ); @@ -889,7 +889,7 @@ if (__DEV__) { "%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -914,7 +914,7 @@ if (__DEV__) { "%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -1414,7 +1414,7 @@ if (__DEV__) { error( 'Each child in a list should have a unique "key" prop.' + - "%s%s See https://reactjs.org/link/warning-keys for more information.", + "%s%s See https://react.dev/link/warning-keys for more information.", currentComponentErrorInfo, childOwner ); diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 474070d97bf31..c20a06f2a3b56 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -2f8f7760223241665f472a2a9be16650473bce39 +1940cb27b260c2eab79c76763d1151ba18353ff8 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 7acb0b88e12d5..4566515fbb99f 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "18.3.0-www-classic-7829c2f7"; + var ReactVersion = "18.3.0-www-classic-14ddc39a"; // ATTENTION // When adding new symbols to this file, @@ -1237,7 +1237,7 @@ if (__DEV__) { "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref ); @@ -1258,7 +1258,7 @@ if (__DEV__) { "%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -1283,7 +1283,7 @@ if (__DEV__) { "%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -2147,7 +2147,7 @@ if (__DEV__) { error( 'Each child in a list should have a unique "key" prop.' + - "%s%s See https://reactjs.org/link/warning-keys for more information.", + "%s%s See https://react.dev/link/warning-keys for more information.", currentComponentErrorInfo, childOwner ); @@ -3013,7 +3013,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } } // Will result in a null access error if accessed outside render phase. We diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 7f4515670dd6e..999a6f276678a 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "18.3.0-www-modern-99dd25e6"; + var ReactVersion = "18.3.0-www-modern-76412cae"; // ATTENTION // When adding new symbols to this file, @@ -1237,7 +1237,7 @@ if (__DEV__) { "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref ); @@ -1258,7 +1258,7 @@ if (__DEV__) { "%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -1283,7 +1283,7 @@ if (__DEV__) { "%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -2103,7 +2103,7 @@ if (__DEV__) { error( 'Each child in a list should have a unique "key" prop.' + - "%s%s See https://reactjs.org/link/warning-keys for more information.", + "%s%s See https://react.dev/link/warning-keys for more information.", currentComponentErrorInfo, childOwner ); @@ -2969,7 +2969,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } } // Will result in a null access error if accessed outside render phase. We diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 86bff68cb629d..da1548c15fe4f 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -633,4 +633,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-classic-d9a6038e"; +exports.version = "18.3.0-www-classic-61b84c37"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index c3a66f095ce66..d3da2c84ccb70 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -625,4 +625,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-modern-4bf685e4"; +exports.version = "18.3.0-www-modern-b83cf0f1"; diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 494c357a5fc27..e84fe6881e84f 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -629,7 +629,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-www-modern-03577a43"; +exports.version = "18.3.0-www-modern-54bc703c"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 8201d016a4d5f..245c3c119cd70 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "18.3.0-www-classic-2abfd3d0"; + var ReactVersion = "18.3.0-www-classic-20a604bc"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -1129,7 +1129,7 @@ if (__DEV__) { error( "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + - "https://reactjs.org/link/react-devtools" + "https://react.dev/link/react-devtools" ); } // DevTools exists, even though it doesn't support Fiber. @@ -5772,7 +5772,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames @@ -5787,11 +5787,11 @@ if (__DEV__) { error( "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames ); @@ -5805,7 +5805,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2 @@ -5819,7 +5819,7 @@ if (__DEV__) { warn( "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -5837,11 +5837,11 @@ if (__DEV__) { warn( "componentWillReceiveProps has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + @@ -5858,7 +5858,7 @@ if (__DEV__) { warn( "componentWillUpdate has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -5931,7 +5931,7 @@ if (__DEV__) { "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + - "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames ); } finally { @@ -6354,7 +6354,7 @@ if (__DEV__) { error( "Each child in a list should have a unique " + - '"key" prop. See https://reactjs.org/link/warning-keys for ' + + '"key" prop. See https://react.dev/link/warning-keys for ' + "more information." ); }; @@ -6397,7 +6397,7 @@ if (__DEV__) { "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + - "See https://reactjs.org/link/refs-must-have-owner for more information." + "See https://react.dev/link/refs-must-have-owner for more information." ); } @@ -6406,7 +6406,7 @@ if (__DEV__) { "Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref" + "https://react.dev/link/strict-mode-string-ref" ); } @@ -6424,7 +6424,7 @@ if (__DEV__) { "will be removed in a future major release. We recommend using " + "useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", componentName, stringRef ); @@ -8486,7 +8486,7 @@ if (__DEV__) { error( "React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + - "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + + "For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + @@ -8537,7 +8537,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -11216,7 +11216,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); }; @@ -13259,7 +13259,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -13876,7 +13876,7 @@ if (__DEV__) { if (boundary.tag === HostRoot) { errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + - "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + "Visit https://react.dev/link/error-boundaries to learn more about error boundaries."; } else { var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; @@ -21292,7 +21292,7 @@ if (__DEV__) { " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + - "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + "Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching"; } else { addendum = " You returned: " + destroy; } @@ -28597,7 +28597,7 @@ if (__DEV__) { error( "Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + - "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "follow the stack trace as described in https://react.dev/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName @@ -28706,7 +28706,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act", + " Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber) ); } finally { @@ -28738,7 +28738,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act" + " Learn more at https://react.dev/link/wrap-tests-with-act" ); } } diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 431f01832ea69..2075c8ae68fbe 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "18.3.0-www-modern-62d2932f"; + var ReactVersion = "18.3.0-www-modern-b085b614"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -1126,7 +1126,7 @@ if (__DEV__) { error( "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + - "https://reactjs.org/link/react-devtools" + "https://react.dev/link/react-devtools" ); } // DevTools exists, even though it doesn't support Fiber. @@ -5537,7 +5537,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames @@ -5552,11 +5552,11 @@ if (__DEV__) { error( "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames ); @@ -5570,7 +5570,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2 @@ -5584,7 +5584,7 @@ if (__DEV__) { warn( "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -5602,11 +5602,11 @@ if (__DEV__) { warn( "componentWillReceiveProps has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + @@ -5623,7 +5623,7 @@ if (__DEV__) { warn( "componentWillUpdate has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -5696,7 +5696,7 @@ if (__DEV__) { "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + - "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames ); } finally { @@ -6119,7 +6119,7 @@ if (__DEV__) { error( "Each child in a list should have a unique " + - '"key" prop. See https://reactjs.org/link/warning-keys for ' + + '"key" prop. See https://react.dev/link/warning-keys for ' + "more information." ); }; @@ -6162,7 +6162,7 @@ if (__DEV__) { "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + - "See https://reactjs.org/link/refs-must-have-owner for more information." + "See https://react.dev/link/refs-must-have-owner for more information." ); } @@ -6171,7 +6171,7 @@ if (__DEV__) { "Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref" + "https://react.dev/link/strict-mode-string-ref" ); } @@ -6189,7 +6189,7 @@ if (__DEV__) { "will be removed in a future major release. We recommend using " + "useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", componentName, stringRef ); @@ -8251,7 +8251,7 @@ if (__DEV__) { error( "React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + - "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + + "For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + @@ -8302,7 +8302,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -10981,7 +10981,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); }; @@ -13006,7 +13006,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -13600,7 +13600,7 @@ if (__DEV__) { if (boundary.tag === HostRoot) { errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + - "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + "Visit https://react.dev/link/error-boundaries to learn more about error boundaries."; } else { var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; @@ -20951,7 +20951,7 @@ if (__DEV__) { " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + - "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + "Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching"; } else { addendum = " You returned: " + destroy; } @@ -28247,7 +28247,7 @@ if (__DEV__) { error( "Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + - "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "follow the stack trace as described in https://react.dev/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName @@ -28356,7 +28356,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act", + " Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber) ); } finally { @@ -28388,7 +28388,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act" + " Learn more at https://react.dev/link/wrap-tests-with-act" ); } } diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 0a082b6a9b41f..2a6699f89e7ea 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -1041,7 +1041,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } } // Will result in a null access error if accessed outside render phase. We @@ -1386,7 +1386,7 @@ if (__DEV__) { error( "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + - "https://reactjs.org/link/react-devtools" + "https://react.dev/link/react-devtools" ); } // DevTools exists, even though it doesn't support Fiber. @@ -4060,7 +4060,7 @@ if (__DEV__) { "(specify either the checked prop, or the defaultChecked prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type ); @@ -4079,7 +4079,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type ); @@ -4640,7 +4640,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled select " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnValueDefaultValue = true; @@ -4711,7 +4711,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled textarea " + "and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component" ); @@ -6871,14 +6871,14 @@ if (__DEV__) { if (invalidProps.length === 1) { error( "Invalid aria prop %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); } else if (invalidProps.length > 1) { error( "Invalid aria props %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); @@ -7289,7 +7289,7 @@ if (__DEV__) { error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, " + "or pass a string or number value to keep it in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -7297,7 +7297,7 @@ if (__DEV__) { error( "Invalid values for props %s on <%s> tag. Either remove them from the element, " + "or pass a string or number value to keep them in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -10568,7 +10568,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames @@ -10583,11 +10583,11 @@ if (__DEV__) { error( "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames ); @@ -10601,7 +10601,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2 @@ -10615,7 +10615,7 @@ if (__DEV__) { warn( "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -10633,11 +10633,11 @@ if (__DEV__) { warn( "componentWillReceiveProps has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + @@ -10654,7 +10654,7 @@ if (__DEV__) { warn( "componentWillUpdate has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -10727,7 +10727,7 @@ if (__DEV__) { "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + - "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames ); } finally { @@ -11082,7 +11082,7 @@ if (__DEV__) { error( "Each child in a list should have a unique " + - '"key" prop. See https://reactjs.org/link/warning-keys for ' + + '"key" prop. See https://react.dev/link/warning-keys for ' + "more information." ); }; @@ -11125,7 +11125,7 @@ if (__DEV__) { "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + - "See https://reactjs.org/link/refs-must-have-owner for more information." + "See https://react.dev/link/refs-must-have-owner for more information." ); } @@ -11134,7 +11134,7 @@ if (__DEV__) { "Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref" + "https://react.dev/link/strict-mode-string-ref" ); } @@ -11152,7 +11152,7 @@ if (__DEV__) { "will be removed in a future major release. We recommend using " + "useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", componentName, stringRef ); @@ -13246,7 +13246,7 @@ if (__DEV__) { error( "React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + - "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + + "For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + @@ -13297,7 +13297,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -16107,7 +16107,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); }; @@ -18178,7 +18178,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -18795,7 +18795,7 @@ if (__DEV__) { if (boundary.tag === HostRoot) { errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + - "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + "Visit https://react.dev/link/error-boundaries to learn more about error boundaries."; } else { var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; @@ -26799,7 +26799,7 @@ if (__DEV__) { " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + - "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + "Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching"; } else { addendum = " You returned: " + destroy; } @@ -34538,7 +34538,7 @@ if (__DEV__) { error( "Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + - "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "follow the stack trace as described in https://react.dev/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName @@ -34647,7 +34647,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act", + " Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber) ); } finally { @@ -34679,7 +34679,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act" + " Learn more at https://react.dev/link/wrap-tests-with-act" ); } } @@ -36046,7 +36046,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-classic-c1990332"; + var ReactVersion = "18.3.0-www-classic-cecf945d"; function createPortal$1( children, @@ -36138,7 +36138,7 @@ if (__DEV__) { "%s was passed an instance of %s which is inside StrictMode. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-find-node", + "https://react.dev/link/strict-mode-find-node", methodName, methodName, componentName @@ -36149,7 +36149,7 @@ if (__DEV__) { "%s was passed an instance of %s which renders StrictMode children. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-find-node", + "https://react.dev/link/strict-mode-find-node", methodName, methodName, componentName @@ -41089,7 +41089,7 @@ if (__DEV__) { if (typeof value !== "object" || !("__html" in value)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -41463,7 +41463,7 @@ if (__DEV__) { if (typeof value !== "object" || !("__html" in value)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -42108,7 +42108,7 @@ if (__DEV__) { "This is likely caused by the value changing from undefined to " + "a defined value, which should not happen. " + "Decide between using a controlled or uncontrolled input " + - "element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components" + "element for the lifetime of the component. More info: https://react.dev/link/controlled-components" ); didWarnUncontrolledToControlled = true; @@ -42124,7 +42124,7 @@ if (__DEV__) { "This is likely caused by the value changing from a defined to " + "undefined, which should not happen. " + "Decide between using a controlled or uncontrolled input " + - "element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components" + "element for the lifetime of the component. More info: https://react.dev/link/controlled-components" ); didWarnControlledToUncontrolled = true; @@ -48616,7 +48616,7 @@ if (__DEV__) { "ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot " + "instead. Until you switch to the new API, your app will behave as " + "if it's running React 17. Learn " + - "more: https://reactjs.org/link/switch-to-createroot" + "more: https://react.dev/link/switch-to-createroot" ); } @@ -48652,7 +48652,7 @@ if (__DEV__) { "ReactDOM.render is no longer supported in React 18. Use createRoot " + "instead. Until you switch to the new API, your app will behave as " + "if it's running React 17. Learn " + - "more: https://reactjs.org/link/switch-to-createroot" + "more: https://react.dev/link/switch-to-createroot" ); } @@ -48693,7 +48693,7 @@ if (__DEV__) { "ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported " + "in React 18. Consider using a portal instead. Until you switch to " + "the createRoot API, your app will behave as if it's running React " + - "17. Learn more: https://reactjs.org/link/switch-to-createroot" + "17. Learn more: https://react.dev/link/switch-to-createroot" ); } @@ -49292,7 +49292,7 @@ if (__DEV__) { ) { error( "React depends on Map and Set built-in types. Make sure that you load a " + - "polyfill in older browsers. https://reactjs.org/link/react-polyfills" + "polyfill in older browsers. https://react.dev/link/react-polyfills" ); } } @@ -49399,10 +49399,10 @@ if (__DEV__) { console.info( "%cDownload the React DevTools " + "for a better development experience: " + - "https://reactjs.org/link/react-devtools" + + "https://react.dev/link/react-devtools" + (protocol === "file:" ? "\nYou might need to use a local HTTP server (instead of file://): " + - "https://reactjs.org/link/react-devtools-faq" + "https://react.dev/link/react-devtools-faq" : ""), "font-weight:bold" ); diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 27e8d368fb383..7dabdbfda3cef 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -182,7 +182,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } } // Will result in a null access error if accessed outside render phase. We @@ -707,7 +707,7 @@ if (__DEV__) { error( "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + - "https://reactjs.org/link/react-devtools" + "https://react.dev/link/react-devtools" ); } // DevTools exists, even though it doesn't support Fiber. @@ -3903,7 +3903,7 @@ if (__DEV__) { "(specify either the checked prop, or the defaultChecked prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type ); @@ -3922,7 +3922,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type ); @@ -4483,7 +4483,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled select " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnValueDefaultValue = true; @@ -4554,7 +4554,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled textarea " + "and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component" ); @@ -6694,14 +6694,14 @@ if (__DEV__) { if (invalidProps.length === 1) { error( "Invalid aria prop %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); } else if (invalidProps.length > 1) { error( "Invalid aria props %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); @@ -7112,7 +7112,7 @@ if (__DEV__) { error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, " + "or pass a string or number value to keep it in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -7120,7 +7120,7 @@ if (__DEV__) { error( "Invalid values for props %s on <%s> tag. Either remove them from the element, " + "or pass a string or number value to keep them in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -10519,7 +10519,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames @@ -10534,11 +10534,11 @@ if (__DEV__) { error( "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames ); @@ -10552,7 +10552,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2 @@ -10566,7 +10566,7 @@ if (__DEV__) { warn( "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -10584,11 +10584,11 @@ if (__DEV__) { warn( "componentWillReceiveProps has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + @@ -10605,7 +10605,7 @@ if (__DEV__) { warn( "componentWillUpdate has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -10678,7 +10678,7 @@ if (__DEV__) { "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + - "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames ); } finally { @@ -11033,7 +11033,7 @@ if (__DEV__) { error( "Each child in a list should have a unique " + - '"key" prop. See https://reactjs.org/link/warning-keys for ' + + '"key" prop. See https://react.dev/link/warning-keys for ' + "more information." ); }; @@ -11076,7 +11076,7 @@ if (__DEV__) { "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + - "See https://reactjs.org/link/refs-must-have-owner for more information." + "See https://react.dev/link/refs-must-have-owner for more information." ); } @@ -11085,7 +11085,7 @@ if (__DEV__) { "Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref" + "https://react.dev/link/strict-mode-string-ref" ); } @@ -11103,7 +11103,7 @@ if (__DEV__) { "will be removed in a future major release. We recommend using " + "useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", componentName, stringRef ); @@ -13197,7 +13197,7 @@ if (__DEV__) { error( "React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + - "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + + "For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + @@ -13248,7 +13248,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -16058,7 +16058,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); }; @@ -18111,7 +18111,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -18705,7 +18705,7 @@ if (__DEV__) { if (boundary.tag === HostRoot) { errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + - "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + "Visit https://react.dev/link/error-boundaries to learn more about error boundaries."; } else { var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; @@ -26644,7 +26644,7 @@ if (__DEV__) { " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + - "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + "Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching"; } else { addendum = " You returned: " + destroy; } @@ -34374,7 +34374,7 @@ if (__DEV__) { error( "Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + - "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "follow the stack trace as described in https://react.dev/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName @@ -34483,7 +34483,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act", + " Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber) ); } finally { @@ -34515,7 +34515,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act" + " Learn more at https://react.dev/link/wrap-tests-with-act" ); } } @@ -35882,7 +35882,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-modern-870a3fc8"; + var ReactVersion = "18.3.0-www-modern-77e7bd4e"; function createPortal$1( children, @@ -41734,7 +41734,7 @@ if (__DEV__) { if (typeof value !== "object" || !("__html" in value)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -42108,7 +42108,7 @@ if (__DEV__) { if (typeof value !== "object" || !("__html" in value)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -42750,7 +42750,7 @@ if (__DEV__) { "This is likely caused by the value changing from undefined to " + "a defined value, which should not happen. " + "Decide between using a controlled or uncontrolled input " + - "element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components" + "element for the lifetime of the component. More info: https://react.dev/link/controlled-components" ); didWarnUncontrolledToControlled = true; @@ -42766,7 +42766,7 @@ if (__DEV__) { "This is likely caused by the value changing from a defined to " + "undefined, which should not happen. " + "Decide between using a controlled or uncontrolled input " + - "element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components" + "element for the lifetime of the component. More info: https://react.dev/link/controlled-components" ); didWarnControlledToUncontrolled = true; @@ -48354,7 +48354,7 @@ if (__DEV__) { ) { error( "React depends on Map and Set built-in types. Make sure that you load a " + - "polyfill in older browsers. https://reactjs.org/link/react-polyfills" + "polyfill in older browsers. https://react.dev/link/react-polyfills" ); } } @@ -48447,10 +48447,10 @@ if (__DEV__) { console.info( "%cDownload the React DevTools " + "for a better development experience: " + - "https://reactjs.org/link/react-devtools" + + "https://react.dev/link/react-devtools" + (protocol === "file:" ? "\nYou might need to use a local HTTP server (instead of file://): " + - "https://reactjs.org/link/react-devtools-faq" + "https://react.dev/link/react-devtools-faq" : ""), "font-weight:bold" ); diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index dfe012c8f37e5..dfcb558872fe1 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -17508,7 +17508,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1863 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-62d2932f", + version: "18.3.0-www-modern-b085b614", rendererPackageName: "react-dom" }; (function (internals) { @@ -17553,7 +17553,7 @@ var devToolsConfig$jscomp$inline_1863 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-62d2932f" + reconcilerVersion: "18.3.0-www-modern-b085b614" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -17811,7 +17811,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-modern-62d2932f"; +exports.version = "18.3.0-www-modern-b085b614"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index e683d9a1faf36..6ef1b7f4e18f7 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "18.3.0-www-classic-5ea8bd06"; + var ReactVersion = "18.3.0-www-classic-24ac93b7"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -1099,14 +1099,14 @@ if (__DEV__) { if (invalidProps.length === 1) { error( "Invalid aria prop %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); } else if (invalidProps.length > 1) { error( "Invalid aria props %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); @@ -2038,7 +2038,7 @@ if (__DEV__) { error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, " + "or pass a string or number value to keep it in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -2046,7 +2046,7 @@ if (__DEV__) { error( "Invalid values for props %s on <%s> tag. Either remove them from the element, " + "or pass a string or number value to keep them in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -3609,7 +3609,7 @@ if (__DEV__) { if (typeof innerHTML !== "object" || !("__html" in innerHTML)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -3732,7 +3732,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled select " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnDefaultSelectValue = true; @@ -4215,7 +4215,7 @@ if (__DEV__) { "(specify either the checked prop, or the defaultChecked prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", "A component", props.type ); @@ -4234,7 +4234,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", "A component", props.type ); @@ -4369,7 +4369,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled textarea " + "and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnDefaultTextareaValue = true; @@ -5641,7 +5641,7 @@ if (__DEV__) { if (typeof innerHTML !== "object" || !("__html" in innerHTML)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -9232,7 +9232,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -9484,7 +9484,7 @@ if (__DEV__) { warn( // keep this warning in sync with ReactStrictModeWarning.js "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code from componentWillMount to componentDidMount (preferred in most cases) " + "or the constructor.\n" + "\nPlease update the following components: %s", @@ -9954,7 +9954,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -9964,7 +9964,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); } } diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 3ccb2e8a1f627..d3dff9819cd66 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "18.3.0-www-modern-9062d3d5"; + var ReactVersion = "18.3.0-www-modern-326ac7bd"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -1099,14 +1099,14 @@ if (__DEV__) { if (invalidProps.length === 1) { error( "Invalid aria prop %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); } else if (invalidProps.length > 1) { error( "Invalid aria props %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); @@ -2038,7 +2038,7 @@ if (__DEV__) { error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, " + "or pass a string or number value to keep it in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -2046,7 +2046,7 @@ if (__DEV__) { error( "Invalid values for props %s on <%s> tag. Either remove them from the element, " + "or pass a string or number value to keep them in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -3609,7 +3609,7 @@ if (__DEV__) { if (typeof innerHTML !== "object" || !("__html" in innerHTML)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -3732,7 +3732,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled select " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnDefaultSelectValue = true; @@ -4215,7 +4215,7 @@ if (__DEV__) { "(specify either the checked prop, or the defaultChecked prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", "A component", props.type ); @@ -4234,7 +4234,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", "A component", props.type ); @@ -4369,7 +4369,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled textarea " + "and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnDefaultTextareaValue = true; @@ -5641,7 +5641,7 @@ if (__DEV__) { if (typeof innerHTML !== "object" || !("__html" in innerHTML)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -9159,7 +9159,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -9405,7 +9405,7 @@ if (__DEV__) { warn( // keep this warning in sync with ReactStrictModeWarning.js "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code from componentWillMount to componentDidMount (preferred in most cases) " + "or the constructor.\n" + "\nPlease update the following components: %s", @@ -9875,7 +9875,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -9885,7 +9885,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); } } diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index b78d2d5fa033b..fd961eb82fdf6 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -1096,14 +1096,14 @@ if (__DEV__) { if (invalidProps.length === 1) { error( "Invalid aria prop %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); } else if (invalidProps.length > 1) { error( "Invalid aria props %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); @@ -2035,7 +2035,7 @@ if (__DEV__) { error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, " + "or pass a string or number value to keep it in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -2043,7 +2043,7 @@ if (__DEV__) { error( "Invalid values for props %s on <%s> tag. Either remove them from the element, " + "or pass a string or number value to keep them in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -3606,7 +3606,7 @@ if (__DEV__) { if (typeof innerHTML !== "object" || !("__html" in innerHTML)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -3729,7 +3729,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled select " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnDefaultSelectValue = true; @@ -4212,7 +4212,7 @@ if (__DEV__) { "(specify either the checked prop, or the defaultChecked prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", "A component", props.type ); @@ -4231,7 +4231,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", "A component", props.type ); @@ -4366,7 +4366,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled textarea " + "and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnDefaultTextareaValue = true; @@ -5638,7 +5638,7 @@ if (__DEV__) { if (typeof innerHTML !== "object" || !("__html" in innerHTML)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -9043,7 +9043,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -9289,7 +9289,7 @@ if (__DEV__) { warn( // keep this warning in sync with ReactStrictModeWarning.js "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code from componentWillMount to componentDidMount (preferred in most cases) " + "or the constructor.\n" + "\nPlease update the following components: %s", @@ -9759,7 +9759,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -9769,7 +9769,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); } } diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index 105575b87acb2..1f994a5129315 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -625,7 +625,7 @@ function pushInnerHTML(target, innerHTML, children) { ); if ("object" !== typeof innerHTML || !("__html" in innerHTML)) throw Error( - "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information." + "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information." ); innerHTML = innerHTML.__html; null !== innerHTML && void 0 !== innerHTML && target.push("" + innerHTML); @@ -1517,7 +1517,7 @@ function pushStartInstance( !("__html" in innerHTML$jscomp$6) ) throw Error( - "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information." + "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information." ); var html = innerHTML$jscomp$6.__html; null !== html && @@ -2856,7 +2856,7 @@ var objectIs = "function" === typeof Object.is ? Object.is : is, function resolveCurrentlyRenderingComponent() { if (null === currentlyRenderingComponent) throw Error( - "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); return currentlyRenderingComponent; } diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 162e097428fce..5449cba7ad0ac 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -1033,7 +1033,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } } // Will result in a null access error if accessed outside render phase. We @@ -1378,7 +1378,7 @@ if (__DEV__) { error( "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + - "https://reactjs.org/link/react-devtools" + "https://react.dev/link/react-devtools" ); } // DevTools exists, even though it doesn't support Fiber. @@ -4197,7 +4197,7 @@ if (__DEV__) { "(specify either the checked prop, or the defaultChecked prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type ); @@ -4216,7 +4216,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type ); @@ -4777,7 +4777,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled select " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnValueDefaultValue = true; @@ -4848,7 +4848,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled textarea " + "and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component" ); @@ -7008,14 +7008,14 @@ if (__DEV__) { if (invalidProps.length === 1) { error( "Invalid aria prop %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); } else if (invalidProps.length > 1) { error( "Invalid aria props %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); @@ -7426,7 +7426,7 @@ if (__DEV__) { error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, " + "or pass a string or number value to keep it in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -7434,7 +7434,7 @@ if (__DEV__) { error( "Invalid values for props %s on <%s> tag. Either remove them from the element, " + "or pass a string or number value to keep them in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -10705,7 +10705,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames @@ -10720,11 +10720,11 @@ if (__DEV__) { error( "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames ); @@ -10738,7 +10738,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2 @@ -10752,7 +10752,7 @@ if (__DEV__) { warn( "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -10770,11 +10770,11 @@ if (__DEV__) { warn( "componentWillReceiveProps has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + @@ -10791,7 +10791,7 @@ if (__DEV__) { warn( "componentWillUpdate has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -10864,7 +10864,7 @@ if (__DEV__) { "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + - "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames ); } finally { @@ -11219,7 +11219,7 @@ if (__DEV__) { error( "Each child in a list should have a unique " + - '"key" prop. See https://reactjs.org/link/warning-keys for ' + + '"key" prop. See https://react.dev/link/warning-keys for ' + "more information." ); }; @@ -11262,7 +11262,7 @@ if (__DEV__) { "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + - "See https://reactjs.org/link/refs-must-have-owner for more information." + "See https://react.dev/link/refs-must-have-owner for more information." ); } @@ -11271,7 +11271,7 @@ if (__DEV__) { "Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref" + "https://react.dev/link/strict-mode-string-ref" ); } @@ -11289,7 +11289,7 @@ if (__DEV__) { "will be removed in a future major release. We recommend using " + "useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", componentName, stringRef ); @@ -13383,7 +13383,7 @@ if (__DEV__) { error( "React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + - "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + + "For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + @@ -13434,7 +13434,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -16244,7 +16244,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); }; @@ -18315,7 +18315,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -18932,7 +18932,7 @@ if (__DEV__) { if (boundary.tag === HostRoot) { errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + - "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + "Visit https://react.dev/link/error-boundaries to learn more about error boundaries."; } else { var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; @@ -26936,7 +26936,7 @@ if (__DEV__) { " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + - "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + "Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching"; } else { addendum = " You returned: " + destroy; } @@ -35162,7 +35162,7 @@ if (__DEV__) { error( "Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + - "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "follow the stack trace as described in https://react.dev/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName @@ -35271,7 +35271,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act", + " Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber) ); } finally { @@ -35303,7 +35303,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act" + " Learn more at https://react.dev/link/wrap-tests-with-act" ); } } @@ -36670,7 +36670,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-classic-d9a6038e"; + var ReactVersion = "18.3.0-www-classic-61b84c37"; function createPortal$1( children, @@ -36762,7 +36762,7 @@ if (__DEV__) { "%s was passed an instance of %s which is inside StrictMode. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-find-node", + "https://react.dev/link/strict-mode-find-node", methodName, methodName, componentName @@ -36773,7 +36773,7 @@ if (__DEV__) { "%s was passed an instance of %s which renders StrictMode children. " + "Instead, add a ref directly to the element you want to reference. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-find-node", + "https://react.dev/link/strict-mode-find-node", methodName, methodName, componentName @@ -41713,7 +41713,7 @@ if (__DEV__) { if (typeof value !== "object" || !("__html" in value)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -42087,7 +42087,7 @@ if (__DEV__) { if (typeof value !== "object" || !("__html" in value)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -42732,7 +42732,7 @@ if (__DEV__) { "This is likely caused by the value changing from undefined to " + "a defined value, which should not happen. " + "Decide between using a controlled or uncontrolled input " + - "element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components" + "element for the lifetime of the component. More info: https://react.dev/link/controlled-components" ); didWarnUncontrolledToControlled = true; @@ -42748,7 +42748,7 @@ if (__DEV__) { "This is likely caused by the value changing from a defined to " + "undefined, which should not happen. " + "Decide between using a controlled or uncontrolled input " + - "element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components" + "element for the lifetime of the component. More info: https://react.dev/link/controlled-components" ); didWarnControlledToUncontrolled = true; @@ -49372,7 +49372,7 @@ if (__DEV__) { "ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot " + "instead. Until you switch to the new API, your app will behave as " + "if it's running React 17. Learn " + - "more: https://reactjs.org/link/switch-to-createroot" + "more: https://react.dev/link/switch-to-createroot" ); } @@ -49408,7 +49408,7 @@ if (__DEV__) { "ReactDOM.render is no longer supported in React 18. Use createRoot " + "instead. Until you switch to the new API, your app will behave as " + "if it's running React 17. Learn " + - "more: https://reactjs.org/link/switch-to-createroot" + "more: https://react.dev/link/switch-to-createroot" ); } @@ -49449,7 +49449,7 @@ if (__DEV__) { "ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported " + "in React 18. Consider using a portal instead. Until you switch to " + "the createRoot API, your app will behave as if it's running React " + - "17. Learn more: https://reactjs.org/link/switch-to-createroot" + "17. Learn more: https://react.dev/link/switch-to-createroot" ); } @@ -50050,7 +50050,7 @@ if (__DEV__) { ) { error( "React depends on Map and Set built-in types. Make sure that you load a " + - "polyfill in older browsers. https://reactjs.org/link/react-polyfills" + "polyfill in older browsers. https://react.dev/link/react-polyfills" ); } } @@ -50157,10 +50157,10 @@ if (__DEV__) { console.info( "%cDownload the React DevTools " + "for a better development experience: " + - "https://reactjs.org/link/react-devtools" + + "https://react.dev/link/react-devtools" + (protocol === "file:" ? "\nYou might need to use a local HTTP server (instead of file://): " + - "https://reactjs.org/link/react-devtools-faq" + "https://react.dev/link/react-devtools-faq" : ""), "font-weight:bold" ); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index d0d282a169a40..07d59de496868 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -174,7 +174,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } } // Will result in a null access error if accessed outside render phase. We @@ -699,7 +699,7 @@ if (__DEV__) { error( "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + - "https://reactjs.org/link/react-devtools" + "https://react.dev/link/react-devtools" ); } // DevTools exists, even though it doesn't support Fiber. @@ -4040,7 +4040,7 @@ if (__DEV__) { "(specify either the checked prop, or the defaultChecked prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type ); @@ -4059,7 +4059,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled input " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type ); @@ -4620,7 +4620,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled select " + "element and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components" + "https://react.dev/link/controlled-components" ); didWarnValueDefaultValue = true; @@ -4691,7 +4691,7 @@ if (__DEV__) { "(specify either the value prop, or the defaultValue prop, but not " + "both). Decide between using a controlled or uncontrolled textarea " + "and remove one of these props. More info: " + - "https://reactjs.org/link/controlled-components", + "https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component" ); @@ -6831,14 +6831,14 @@ if (__DEV__) { if (invalidProps.length === 1) { error( "Invalid aria prop %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); } else if (invalidProps.length > 1) { error( "Invalid aria props %s on <%s> tag. " + - "For details, see https://reactjs.org/link/invalid-aria-props", + "For details, see https://react.dev/link/invalid-aria-props", unknownPropString, type ); @@ -7249,7 +7249,7 @@ if (__DEV__) { error( "Invalid value for prop %s on <%s> tag. Either remove it from the element, " + "or pass a string or number value to keep it in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -7257,7 +7257,7 @@ if (__DEV__) { error( "Invalid values for props %s on <%s> tag. Either remove them from the element, " + "or pass a string or number value to keep them in the DOM. " + - "For details, see https://reactjs.org/link/attribute-behavior ", + "For details, see https://react.dev/link/attribute-behavior ", unknownPropString, type ); @@ -10656,7 +10656,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames @@ -10671,11 +10671,11 @@ if (__DEV__) { error( "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames ); @@ -10689,7 +10689,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2 @@ -10703,7 +10703,7 @@ if (__DEV__) { warn( "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -10721,11 +10721,11 @@ if (__DEV__) { warn( "componentWillReceiveProps has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + @@ -10742,7 +10742,7 @@ if (__DEV__) { warn( "componentWillUpdate has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -10815,7 +10815,7 @@ if (__DEV__) { "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + - "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames ); } finally { @@ -11170,7 +11170,7 @@ if (__DEV__) { error( "Each child in a list should have a unique " + - '"key" prop. See https://reactjs.org/link/warning-keys for ' + + '"key" prop. See https://react.dev/link/warning-keys for ' + "more information." ); }; @@ -11213,7 +11213,7 @@ if (__DEV__) { "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + - "See https://reactjs.org/link/refs-must-have-owner for more information." + "See https://react.dev/link/refs-must-have-owner for more information." ); } @@ -11222,7 +11222,7 @@ if (__DEV__) { "Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref" + "https://react.dev/link/strict-mode-string-ref" ); } @@ -11240,7 +11240,7 @@ if (__DEV__) { "will be removed in a future major release. We recommend using " + "useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", componentName, stringRef ); @@ -13334,7 +13334,7 @@ if (__DEV__) { error( "React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + - "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + + "For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + @@ -13385,7 +13385,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -16195,7 +16195,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); }; @@ -18248,7 +18248,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -18842,7 +18842,7 @@ if (__DEV__) { if (boundary.tag === HostRoot) { errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + - "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + "Visit https://react.dev/link/error-boundaries to learn more about error boundaries."; } else { var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; @@ -26781,7 +26781,7 @@ if (__DEV__) { " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + - "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + "Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching"; } else { addendum = " You returned: " + destroy; } @@ -34998,7 +34998,7 @@ if (__DEV__) { error( "Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + - "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "follow the stack trace as described in https://react.dev/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName @@ -35107,7 +35107,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act", + " Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber) ); } finally { @@ -35139,7 +35139,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act" + " Learn more at https://react.dev/link/wrap-tests-with-act" ); } } @@ -36506,7 +36506,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-modern-bb4e25d0"; + var ReactVersion = "18.3.0-www-modern-f8aa8f51"; function createPortal$1( children, @@ -42358,7 +42358,7 @@ if (__DEV__) { if (typeof value !== "object" || !("__html" in value)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -42732,7 +42732,7 @@ if (__DEV__) { if (typeof value !== "object" || !("__html" in value)) { throw new Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. " + - "Please visit https://reactjs.org/link/dangerously-set-inner-html " + + "Please visit https://react.dev/link/dangerously-set-inner-html " + "for more information." ); } @@ -43374,7 +43374,7 @@ if (__DEV__) { "This is likely caused by the value changing from undefined to " + "a defined value, which should not happen. " + "Decide between using a controlled or uncontrolled input " + - "element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components" + "element for the lifetime of the component. More info: https://react.dev/link/controlled-components" ); didWarnUncontrolledToControlled = true; @@ -43390,7 +43390,7 @@ if (__DEV__) { "This is likely caused by the value changing from a defined to " + "undefined, which should not happen. " + "Decide between using a controlled or uncontrolled input " + - "element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components" + "element for the lifetime of the component. More info: https://react.dev/link/controlled-components" ); didWarnControlledToUncontrolled = true; @@ -49112,7 +49112,7 @@ if (__DEV__) { ) { error( "React depends on Map and Set built-in types. Make sure that you load a " + - "polyfill in older browsers. https://reactjs.org/link/react-polyfills" + "polyfill in older browsers. https://react.dev/link/react-polyfills" ); } } @@ -49205,10 +49205,10 @@ if (__DEV__) { console.info( "%cDownload the React DevTools " + "for a better development experience: " + - "https://reactjs.org/link/react-devtools" + + "https://react.dev/link/react-devtools" + (protocol === "file:" ? "\nYou might need to use a local HTTP server (instead of file://): " + - "https://reactjs.org/link/react-devtools-faq" + "https://react.dev/link/react-devtools-faq" : ""), "font-weight:bold" ); diff --git a/compiled/facebook-www/ReactServer-dev.modern.js b/compiled/facebook-www/ReactServer-dev.modern.js index 531b879101614..100953972b1ee 100644 --- a/compiled/facebook-www/ReactServer-dev.modern.js +++ b/compiled/facebook-www/ReactServer-dev.modern.js @@ -950,7 +950,7 @@ if (__DEV__) { "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref ); @@ -971,7 +971,7 @@ if (__DEV__) { "%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -996,7 +996,7 @@ if (__DEV__) { "%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + - "prop. (https://reactjs.org/link/special-props)", + "prop. (https://react.dev/link/special-props)", displayName ); } @@ -1816,7 +1816,7 @@ if (__DEV__) { error( 'Each child in a list should have a unique "key" prop.' + - "%s%s See https://reactjs.org/link/warning-keys for more information.", + "%s%s See https://react.dev/link/warning-keys for more information.", currentComponentErrorInfo, childOwner ); @@ -2321,7 +2321,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } } // Will result in a null access error if accessed outside render phase. We @@ -2809,7 +2809,7 @@ if (__DEV__) { console["error"](error); }; - var ReactVersion = "18.3.0-www-modern-6b351b63"; + var ReactVersion = "18.3.0-www-modern-bab94e1d"; // Patch fetch var Children = { diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 91d9930237751..3149b8c7a286c 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -990,7 +990,7 @@ if (__DEV__) { error( "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + - "https://reactjs.org/link/react-devtools" + "https://react.dev/link/react-devtools" ); } // DevTools exists, even though it doesn't support Fiber. @@ -4701,7 +4701,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames @@ -4716,11 +4716,11 @@ if (__DEV__) { error( "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames ); @@ -4734,7 +4734,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2 @@ -4748,7 +4748,7 @@ if (__DEV__) { warn( "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -4766,11 +4766,11 @@ if (__DEV__) { warn( "componentWillReceiveProps has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + @@ -4787,7 +4787,7 @@ if (__DEV__) { warn( "componentWillUpdate has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -4860,7 +4860,7 @@ if (__DEV__) { "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + - "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames ); } finally { @@ -5283,7 +5283,7 @@ if (__DEV__) { error( "Each child in a list should have a unique " + - '"key" prop. See https://reactjs.org/link/warning-keys for ' + + '"key" prop. See https://react.dev/link/warning-keys for ' + "more information." ); }; @@ -5326,7 +5326,7 @@ if (__DEV__) { "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + - "See https://reactjs.org/link/refs-must-have-owner for more information." + "See https://react.dev/link/refs-must-have-owner for more information." ); } @@ -5335,7 +5335,7 @@ if (__DEV__) { "Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref" + "https://react.dev/link/strict-mode-string-ref" ); } @@ -5353,7 +5353,7 @@ if (__DEV__) { "will be removed in a future major release. We recommend using " + "useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", componentName, stringRef ); @@ -7384,7 +7384,7 @@ if (__DEV__) { error( "React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + - "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + + "For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + @@ -7435,7 +7435,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -9908,7 +9908,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); }; @@ -11805,7 +11805,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -12414,7 +12414,7 @@ if (__DEV__) { if (boundary.tag === HostRoot) { errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + - "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + "Visit https://react.dev/link/error-boundaries to learn more about error boundaries."; } else { var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; @@ -18694,7 +18694,7 @@ if (__DEV__) { " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + - "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + "Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching"; } else { addendum = " You returned: " + destroy; } @@ -24761,7 +24761,7 @@ if (__DEV__) { error( "Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + - "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "follow the stack trace as described in https://react.dev/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName @@ -24857,7 +24857,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act", + " Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber) ); } finally { @@ -24889,7 +24889,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act" + " Learn more at https://react.dev/link/wrap-tests-with-act" ); } } @@ -26102,7 +26102,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-classic-fd6595f6"; + var ReactVersion = "18.3.0-www-classic-767ddd4e"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 86883ef9ed6a9..1541cb4cda2c3 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -990,7 +990,7 @@ if (__DEV__) { error( "The installed version of React DevTools is too old and will not work " + "with the current version of React. Please update React DevTools. " + - "https://reactjs.org/link/react-devtools" + "https://react.dev/link/react-devtools" ); } // DevTools exists, even though it doesn't support Fiber. @@ -4701,7 +4701,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "\nPlease update the following components: %s", sortedNames @@ -4716,11 +4716,11 @@ if (__DEV__) { error( "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, " + "refactor your code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "\nPlease update the following components: %s", _sortedNames ); @@ -4734,7 +4734,7 @@ if (__DEV__) { error( "Using UNSAFE_componentWillUpdate in strict mode is not recommended " + "and may indicate bugs in your code. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "\nPlease update the following components: %s", _sortedNames2 @@ -4748,7 +4748,7 @@ if (__DEV__) { warn( "componentWillMount has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" + "* Rename componentWillMount to UNSAFE_componentWillMount to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -4766,11 +4766,11 @@ if (__DEV__) { warn( "componentWillReceiveProps has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* If you're updating state whenever props change, refactor your " + "code to use memoization techniques or move it to " + - "static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" + + "static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" + "* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + "To rename all deprecated lifecycles to their new names, you can run " + @@ -4787,7 +4787,7 @@ if (__DEV__) { warn( "componentWillUpdate has been renamed, and is not recommended for use. " + - "See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" + + "See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" + "* Move data fetching code or side effects to componentDidUpdate.\n" + "* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " + "this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " + @@ -4860,7 +4860,7 @@ if (__DEV__) { "\n\nThe old API will be supported in all 16.x releases, but applications " + "using it should migrate to the new version." + "\n\nPlease update the following components: %s" + - "\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames ); } finally { @@ -5283,7 +5283,7 @@ if (__DEV__) { error( "Each child in a list should have a unique " + - '"key" prop. See https://reactjs.org/link/warning-keys for ' + + '"key" prop. See https://react.dev/link/warning-keys for ' + "more information." ); }; @@ -5326,7 +5326,7 @@ if (__DEV__) { "1. You may be adding a ref to a function component\n" + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + "3. You have multiple copies of React loaded\n" + - "See https://reactjs.org/link/refs-must-have-owner for more information." + "See https://react.dev/link/refs-must-have-owner for more information." ); } @@ -5335,7 +5335,7 @@ if (__DEV__) { "Function components cannot have string refs. " + "We recommend using useRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref" + "https://react.dev/link/strict-mode-string-ref" ); } @@ -5353,7 +5353,7 @@ if (__DEV__) { "will be removed in a future major release. We recommend using " + "useRef() or createRef() instead. " + "Learn more about using refs safely here: " + - "https://reactjs.org/link/strict-mode-string-ref", + "https://react.dev/link/strict-mode-string-ref", componentName, stringRef ); @@ -7384,7 +7384,7 @@ if (__DEV__) { error( "React has detected a change in the order of Hooks called by %s. " + "This will lead to bugs and errors if not fixed. " + - "For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" + + "For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" + " Previous render Next render\n" + " ------------------------------------------------------\n" + "%s" + @@ -7435,7 +7435,7 @@ if (__DEV__) { "1. You might have mismatching versions of React and the renderer (such as React DOM)\n" + "2. You might be breaking the Rules of Hooks\n" + "3. You might have more than one copy of React in the same app\n" + - "See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." + "See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." ); } @@ -9908,7 +9908,7 @@ if (__DEV__) { "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " + "You can only call Hooks at the top level of your React function. " + "For more information, see " + - "https://reactjs.org/link/rules-of-hooks" + "https://react.dev/link/rules-of-hooks" ); }; @@ -11805,7 +11805,7 @@ if (__DEV__) { "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + "%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" + "The above lifecycles should be removed. Learn more about this warning here:\n" + - "https://reactjs.org/link/unsafe-component-lifecycles", + "https://react.dev/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", @@ -12414,7 +12414,7 @@ if (__DEV__) { if (boundary.tag === HostRoot) { errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\n" + - "Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + "Visit https://react.dev/link/error-boundaries to learn more about error boundaries."; } else { var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; @@ -18694,7 +18694,7 @@ if (__DEV__) { " }\n" + " fetchData();\n" + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + - "Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + "Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching"; } else { addendum = " You returned: " + destroy; } @@ -24761,7 +24761,7 @@ if (__DEV__) { error( "Cannot update a component (`%s`) while rendering a " + "different component (`%s`). To locate the bad setState() call inside `%s`, " + - "follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "follow the stack trace as described in https://react.dev/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName @@ -24857,7 +24857,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act", + " Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber) ); } finally { @@ -24889,7 +24889,7 @@ if (__DEV__) { "/* assert on the output */\n\n" + "This ensures that you're testing the behavior the user would see " + "in the browser." + - " Learn more at https://reactjs.org/link/wrap-tests-with-act" + " Learn more at https://react.dev/link/wrap-tests-with-act" ); } } @@ -26102,7 +26102,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-www-modern-1a7349f1"; + var ReactVersion = "18.3.0-www-modern-78e7b472"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestUtils-dev.classic.js b/compiled/facebook-www/ReactTestUtils-dev.classic.js index b74d14d8f5ee1..5b8183c4630e3 100644 --- a/compiled/facebook-www/ReactTestUtils-dev.classic.js +++ b/compiled/facebook-www/ReactTestUtils-dev.classic.js @@ -1344,7 +1344,7 @@ if (__DEV__) { warn( "ReactTestUtils.mockComponent() is deprecated. " + "Use shallow rendering or jest.mock() instead.\n\n" + - "See https://reactjs.org/link/test-utils-mock-component for more information." + "See https://react.dev/link/test-utils-mock-component for more information." ); } } diff --git a/compiled/facebook-www/ReactTestUtils-dev.modern.js b/compiled/facebook-www/ReactTestUtils-dev.modern.js index b74d14d8f5ee1..5b8183c4630e3 100644 --- a/compiled/facebook-www/ReactTestUtils-dev.modern.js +++ b/compiled/facebook-www/ReactTestUtils-dev.modern.js @@ -1344,7 +1344,7 @@ if (__DEV__) { warn( "ReactTestUtils.mockComponent() is deprecated. " + "Use shallow rendering or jest.mock() instead.\n\n" + - "See https://reactjs.org/link/test-utils-mock-component for more information." + "See https://react.dev/link/test-utils-mock-component for more information." ); } } diff --git a/compiled/facebook-www/__test_utils__/ReactAllWarnings.js b/compiled/facebook-www/__test_utils__/ReactAllWarnings.js index 89dd6e0c6ba65..63064c1e2d73f 100644 --- a/compiled/facebook-www/__test_utils__/ReactAllWarnings.js +++ b/compiled/facebook-www/__test_utils__/ReactAllWarnings.js @@ -15,9 +15,9 @@ export default [ "\"%s\" is not a valid value for revealOrder on . React uses the -s suffix in the spelling. Use \"%ss\" instead.", "\"%s\" is not a valid value for revealOrder on . Use lowercase \"%s\" instead.", "%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.", - "%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components", - "%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", - "%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", + "%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components", + "%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", + "%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", "%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", "%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", "%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", @@ -29,8 +29,8 @@ export default [ "%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", "%s is accessing findNodeHandle inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - "%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", - "%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", + "%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node", + "%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node", "%s is not a supported value for revealOrder on . Did you mean \"together\", \"forwards\" or \"backwards\"?", "%s must not return anything besides a function, which is used for clean-up.%s", "%s objects cannot be rendered as text children. Try formatting it using toString().%s", @@ -56,8 +56,8 @@ export default [ "%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.", "%s: Unsafe read of a mutable value during render.\n\nReading from a ref during render is only safe if:\n1. The ref value has not been updated, or\n2. The ref holds a lazily-initialized value that is only set once.\n", "%s: Unsafe write of a mutable value during render.\n\nWriting to a ref during render is only safe if the ref holds a lazily-initialized value that is only set once.\n", - "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", - "%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", + "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", + "%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", "%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", "%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", "%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", @@ -68,8 +68,8 @@ export default [ "A cache instance was released after it was already freed. This likely indicates a bug in React.", "A cache instance was retained after it was already freed. This likely indicates a bug in React.", "A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.", - "A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components", - "A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components", + "A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components", + "A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components", "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)", "A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.", "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.", @@ -80,7 +80,7 @@ export default [ "A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", "A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.", "A single row was passed to a . This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?", - "A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act", + "A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act", "A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering", "A title element received a value that was not a string or number%s for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering", "A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering", @@ -93,7 +93,7 @@ export default [ "An invalid container has been provided. This may indicate that another renderer is being used in addition to the test renderer. (For example, ReactDOM.createPortal inside of a ReactTestRenderer tree.) This is not supported.", "An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.", "An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s", - "An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act", + "An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act", "Assignment to read-only property will result in a no-op: `%s`", "Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.", "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?", @@ -121,12 +121,12 @@ export default [ "Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.", "Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.", "Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.", - "Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render", + "Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render", "Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.", "Cannot update the \"is\" prop after it has been initialized.", "Changing the name of a tracing marker after mount is not supported. To remount the tracing marker, pass it a new key.", - "Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", - "Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", + "Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref", + "Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref", "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().", "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.", "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.", @@ -136,9 +136,9 @@ export default [ "Did not expect server HTML to contain the text node \"%s\" in <%s>.", "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.", "Dispatching inst must not be null", - "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks", - "Each child in a list should have a unique \"key\" prop. See https://reactjs.org/link/warning-keys for more information.", - "Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", + "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks", + "Each child in a list should have a unique \"key\" prop. See https://react.dev/link/warning-keys for more information.", + "Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.", "Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).", "Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.", "Ended a touch event which was not counted in `trackedTouchCount`.", @@ -189,22 +189,22 @@ export default [ "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", "Invalid ARIA attribute `%s`. Did you mean `%s`?", "Invalid DOM property `%s`. Did you mean `%s`?", - "Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", - "Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", + "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", + "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", "Invalid attribute `ref` supplied to `React.Fragment`.", "Invalid attribute name: `%s`", "Invalid event handler property `%s`. Did you mean `%s`?", "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", - "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.", + "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.", "Invalid key type. Expected a string, number, symbol, or boolean, but instead received: %s\n\nTo use non-primitive values as keys, you must pass a hash function as the second argument to createResource().", "Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", - "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ", - "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ", + "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ", + "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ", "It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.", "It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.", "It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", "It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.", - "Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", + "Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context", "Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.", "Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, )", "No `render` method found on the %s instance: did you accidentally return an object from the constructor?", @@ -224,7 +224,7 @@ export default [ "React Context Providers cannot be passed to Server Functions from the Client.%s", "React Element cannot be passed to Server Functions from the Client.%s", "React Lazy cannot be passed to Server Functions from the Client.%s", - "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills", + "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills", "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", "React encountered a with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.", "React encountered a `` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.", @@ -239,7 +239,7 @@ export default [ "React expects the `children` prop of tags to be a string, number%s, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes. For example: <title>hello {nameOfUser}. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: {`hello ${nameOfUser}`}.", "React expects the `children` prop of tags to be a string, number%s, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML.", "React expects the `children` prop of <title> tags to be a string, number%s, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>.", - "React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", "React instrumentation encountered an error: %s", "React instrumentation encountered an error: %s.", "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.", @@ -248,7 +248,7 @@ export default [ "React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.", "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.", "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", - "ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot", + "ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://react.dev/link/switch-to-createroot", "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", @@ -262,9 +262,9 @@ export default [ "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", "ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s", "ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s", - "ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot", - "ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot", - "ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.\n\nSee https://reactjs.org/link/test-utils-mock-component for more information.", + "ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://react.dev/link/switch-to-createroot", + "ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://react.dev/link/switch-to-createroot", + "ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.\n\nSee https://react.dev/link/test-utils-mock-component for more information.", "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", "Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.", "Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", @@ -273,7 +273,7 @@ export default [ "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", "Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", "Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render.", - "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components", + "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components", "Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", "Should have found matching lanes. This is a bug in React.", "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().", @@ -284,7 +284,7 @@ export default [ "Symbols are not valid as a React child.\n root.render(%s)", "Text content did not match. Server: \"%s\" Client: \"%s\"", "Text strings must be rendered within a <Text> component.", - "Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components", + "Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components", "The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", "The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.", @@ -295,7 +295,7 @@ export default [ "The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?", "The current testing environment is not configured to support act(...)", "The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", - "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools", + "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools", "The main 'use-sync-external-store' entry point is not supported; all it does is re-export useSyncExternalStore from the 'react' package, so it only works with React 18+.\n\nIf you wish to support React 16 and 17, import from 'use-sync-external-store/shim' instead. It will fall back to a shimmed implementation when the native one is not available.\n\nIf you only support React 18+, you can import directly from 'react'.", "The parent context is not the expected context. This is probably a bug in React.", "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.", @@ -310,7 +310,7 @@ export default [ "The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", "There was still abortable task at the root when we closed. This is a bug in React.", "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.", - "This synthetic event is reused for performance reasons. If you're seeing this, you're %s `%s` on a released/nullified synthetic event. %s. If you must keep the original synthetic event around, use event.persist(). See https://reactjs.org/link/event-pooling for more information.", + "This synthetic event is reused for performance reasons. If you're seeing this, you're %s `%s` on a released/nullified synthetic event. %s. If you must keep the original synthetic event around, use event.persist(). See https://react.dev/link/event-pooling for more information.", "Touch identifier %s is greater than maximum supported %s which causes performance issues backfilling array locations for all of the indices.", "Touch with identifier %s already exists. Did not record touch start.", "Touch with identifier %s does not exist. Cannot record touch end without a touch start.", @@ -323,7 +323,7 @@ export default [ "Unexpected type of fiber triggered a suspensey commit. This is a bug in React.", "Unknown ARIA attribute `%s`. Did you mean `%s`?", "Unknown event handler property `%s`. It will be ignored.", - "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles", + "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", "Unsupported style property %s. Did you mean %s?", "Unsupported vendor-prefixed style property %s. Did you mean %s?", "Use the `defaultValue` or `value` props instead of setting children on <textarea>.", @@ -331,9 +331,9 @@ export default [ "Using 'dangerouslySetInnerHTML' in an svg element with Trusted Types enabled in an Internet Explorer will cause the trusted value to be converted to string. Assigning string to 'innerHTML' will throw an error if Trusted Types are enforced. You can try to wrap your svg element inside a div and use 'dangerouslySetInnerHTML' on the enclosing div instead.", "Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers.", "Using Maps as children is not supported. Use an array of keyed ReactElements instead.", - "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", - "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s", - "Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", + "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", + "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s", + "Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", "Warning: ref.measureLayout must be called with a node handle or a ref to a native component.", "We should not be hydrating here. This is a bug in React. Please file a bug.", "When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", @@ -370,10 +370,10 @@ export default [ "acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.", "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.", "childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...", - "componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\n\nPlease update the following components: %s", - "componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", - "componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", - "componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", + "componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\n\nPlease update the following components: %s", + "componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", + "componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", + "componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", "contextType was defined as an instance property on %s. Use a static property to define contextType instead.", "contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", "copyWithRename() expects paths of the same length", diff --git a/compiled/facebook-www/eslint-plugin-react-hooks.js b/compiled/facebook-www/eslint-plugin-react-hooks.js index 2f82a998e7259..b71ffad375595 100644 --- a/compiled/facebook-www/eslint-plugin-react-hooks.js +++ b/compiled/facebook-www/eslint-plugin-react-hooks.js @@ -883,7 +883,7 @@ var ExhaustiveDeps = { if (isEffect && node.async) { reportProblem({ node: node, - message: "Effect callbacks are synchronous to prevent race conditions. " + "Put the async function inside:\n\n" + 'useEffect(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching' + message: "Effect callbacks are synchronous to prevent race conditions. " + "Put the async function inside:\n\n" + 'useEffect(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching' }); } // Get the current scope.