Skip to content

Commit

Permalink
Update /link URLs to react.dev (#28477)
Browse files Browse the repository at this point in the history
Depends on reactjs/react.dev#6670 [merged]

DiffTrain build for commit 1940cb2.
  • Loading branch information
rickhanlonii committed Mar 3, 2024
1 parent c6a8295 commit d27934b
Show file tree
Hide file tree
Showing 15 changed files with 140 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<514c453e36455da8cb22e0c8c9169c24>>
* @generated SignedSource<<78b0af382001ac231b9f1246e965d57b>>
*/

"use strict";
Expand Down Expand Up @@ -985,7 +985,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.

Expand Down Expand Up @@ -4458,7 +4458,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
Expand All @@ -4473,11 +4473,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
);
Expand All @@ -4491,7 +4491,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
Expand All @@ -4505,7 +4505,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. " +
Expand All @@ -4523,11 +4523,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 " +
Expand All @@ -4544,7 +4544,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. " +
Expand Down Expand Up @@ -4617,7 +4617,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 {
Expand Down Expand Up @@ -5040,7 +5040,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."
);
};
Expand Down Expand Up @@ -5083,7 +5083,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."
);
}

Expand All @@ -5092,7 +5092,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"
);
}

Expand All @@ -5110,7 +5110,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
);
Expand Down Expand Up @@ -7116,7 +7116,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" +
Expand Down Expand Up @@ -7167,7 +7167,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."
);
}

Expand Down Expand Up @@ -9624,7 +9624,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"
);
};

Expand Down Expand Up @@ -11521,7 +11521,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 : "",
Expand Down Expand Up @@ -12117,7 +12117,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";
Expand Down Expand Up @@ -17910,7 +17910,7 @@ if (__DEV__) {
error = new Error(
"A cross-origin error was thrown. React doesn't have access to " +
"the actual error object in development. " +
"See https://reactjs.org/link/crossorigin-error for more information."
"See https://react.dev/link/crossorigin-error for more information."
);
}

Expand Down Expand Up @@ -18400,7 +18400,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;
}
Expand Down Expand Up @@ -24410,7 +24410,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
Expand Down Expand Up @@ -24506,7 +24506,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 {
Expand Down Expand Up @@ -24538,7 +24538,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"
);
}
}
Expand Down Expand Up @@ -25733,7 +25733,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-canary-30ae0baed-20240301";
var ReactVersion = "18.3.0-canary-1940cb27b-20240303";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c9fcc719668d07b3a623f14e395c32b8>>
* @generated SignedSource<<9709781bdd6feccf0ca9738138d835d3>>
*/

"use strict";
Expand Down Expand Up @@ -1470,11 +1470,11 @@ function convertStringRefToCallbackRef(
throw Error(
"Element ref was specified as a string (" +
stringRef +
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
);
if (1 !== returnFiber.tag)
throw Error(
"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"
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
);
var inst = returnFiber.stateNode;
if (!inst)
Expand Down Expand Up @@ -2271,7 +2271,7 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
globalClientIdCounter = 0;
function throwInvalidHookError() {
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."
);
}
function areHookInputsEqual(nextDeps, prevDeps) {
Expand Down Expand Up @@ -9173,7 +9173,7 @@ var devToolsConfig$jscomp$inline_1014 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-30ae0baed-20240301",
version: "18.3.0-canary-1940cb27b-20240303",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1195 = {
Expand Down Expand Up @@ -9204,7 +9204,7 @@ var internals$jscomp$inline_1195 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-30ae0baed-20240301"
reconcilerVersion: "18.3.0-canary-1940cb27b-20240303"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1196 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<749ebcbb693ef8635dc1c79f3b3a628d>>
* @generated SignedSource<<b20c26683aec6ca4ced107db94e0a031>>
*/

"use strict";
Expand Down Expand Up @@ -1490,11 +1490,11 @@ function convertStringRefToCallbackRef(
throw Error(
"Element ref was specified as a string (" +
stringRef +
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
);
if (1 !== returnFiber.tag)
throw Error(
"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"
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
);
var inst = returnFiber.stateNode;
if (!inst)
Expand Down Expand Up @@ -2291,7 +2291,7 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
globalClientIdCounter = 0;
function throwInvalidHookError() {
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."
);
}
function areHookInputsEqual(nextDeps, prevDeps) {
Expand Down Expand Up @@ -9601,7 +9601,7 @@ var devToolsConfig$jscomp$inline_1056 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-30ae0baed-20240301",
version: "18.3.0-canary-1940cb27b-20240303",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1236 = {
Expand Down Expand Up @@ -9632,7 +9632,7 @@ var internals$jscomp$inline_1236 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-30ae0baed-20240301"
reconcilerVersion: "18.3.0-canary-1940cb27b-20240303"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1237 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Loading

0 comments on commit d27934b

Please sign in to comment.