Skip to content

Commit d27934b

Browse files
committed
Update /link URLs to react.dev (#28477)
Depends on reactjs/react.dev#6670 [merged] DiffTrain build for commit facebook/react@1940cb2.
1 parent c6a8295 commit d27934b

File tree

15 files changed

+140
-140
lines changed

15 files changed

+140
-140
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<514c453e36455da8cb22e0c8c9169c24>>
10+
* @generated SignedSource<<78b0af382001ac231b9f1246e965d57b>>
1111
*/
1212

1313
"use strict";
@@ -985,7 +985,7 @@ if (__DEV__) {
985985
error(
986986
"The installed version of React DevTools is too old and will not work " +
987987
"with the current version of React. Please update React DevTools. " +
988-
"https://reactjs.org/link/react-devtools"
988+
"https://react.dev/link/react-devtools"
989989
);
990990
} // DevTools exists, even though it doesn't support Fiber.
991991

@@ -4458,7 +4458,7 @@ if (__DEV__) {
44584458

44594459
error(
44604460
"Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " +
4461-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
4461+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
44624462
"* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" +
44634463
"\nPlease update the following components: %s",
44644464
sortedNames
@@ -4473,11 +4473,11 @@ if (__DEV__) {
44734473
error(
44744474
"Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " +
44754475
"and may indicate bugs in your code. " +
4476-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
4476+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
44774477
"* Move data fetching code or side effects to componentDidUpdate.\n" +
44784478
"* If you're updating state whenever props change, " +
44794479
"refactor your code to use memoization techniques or move it to " +
4480-
"static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" +
4480+
"static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" +
44814481
"\nPlease update the following components: %s",
44824482
_sortedNames
44834483
);
@@ -4491,7 +4491,7 @@ if (__DEV__) {
44914491
error(
44924492
"Using UNSAFE_componentWillUpdate in strict mode is not recommended " +
44934493
"and may indicate bugs in your code. " +
4494-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
4494+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
44954495
"* Move data fetching code or side effects to componentDidUpdate.\n" +
44964496
"\nPlease update the following components: %s",
44974497
_sortedNames2
@@ -4505,7 +4505,7 @@ if (__DEV__) {
45054505

45064506
warn(
45074507
"componentWillMount has been renamed, and is not recommended for use. " +
4508-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
4508+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
45094509
"* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" +
45104510
"* Rename componentWillMount to UNSAFE_componentWillMount to suppress " +
45114511
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
@@ -4523,11 +4523,11 @@ if (__DEV__) {
45234523

45244524
warn(
45254525
"componentWillReceiveProps has been renamed, and is not recommended for use. " +
4526-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
4526+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
45274527
"* Move data fetching code or side effects to componentDidUpdate.\n" +
45284528
"* If you're updating state whenever props change, refactor your " +
45294529
"code to use memoization techniques or move it to " +
4530-
"static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" +
4530+
"static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" +
45314531
"* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " +
45324532
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
45334533
"To rename all deprecated lifecycles to their new names, you can run " +
@@ -4544,7 +4544,7 @@ if (__DEV__) {
45444544

45454545
warn(
45464546
"componentWillUpdate has been renamed, and is not recommended for use. " +
4547-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
4547+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
45484548
"* Move data fetching code or side effects to componentDidUpdate.\n" +
45494549
"* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " +
45504550
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
@@ -4617,7 +4617,7 @@ if (__DEV__) {
46174617
"\n\nThe old API will be supported in all 16.x releases, but applications " +
46184618
"using it should migrate to the new version." +
46194619
"\n\nPlease update the following components: %s" +
4620-
"\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",
4620+
"\n\nLearn more about this warning here: https://react.dev/link/legacy-context",
46214621
sortedNames
46224622
);
46234623
} finally {
@@ -5040,7 +5040,7 @@ if (__DEV__) {
50405040

50415041
error(
50425042
"Each child in a list should have a unique " +
5043-
'"key" prop. See https://reactjs.org/link/warning-keys for ' +
5043+
'"key" prop. See https://react.dev/link/warning-keys for ' +
50445044
"more information."
50455045
);
50465046
};
@@ -5083,7 +5083,7 @@ if (__DEV__) {
50835083
"1. You may be adding a ref to a function component\n" +
50845084
"2. You may be adding a ref to a component that was not created inside a component's render method\n" +
50855085
"3. You have multiple copies of React loaded\n" +
5086-
"See https://reactjs.org/link/refs-must-have-owner for more information."
5086+
"See https://react.dev/link/refs-must-have-owner for more information."
50875087
);
50885088
}
50895089

@@ -5092,7 +5092,7 @@ if (__DEV__) {
50925092
"Function components cannot have string refs. " +
50935093
"We recommend using useRef() instead. " +
50945094
"Learn more about using refs safely here: " +
5095-
"https://reactjs.org/link/strict-mode-string-ref"
5095+
"https://react.dev/link/strict-mode-string-ref"
50965096
);
50975097
}
50985098

@@ -5110,7 +5110,7 @@ if (__DEV__) {
51105110
"will be removed in a future major release. We recommend using " +
51115111
"useRef() or createRef() instead. " +
51125112
"Learn more about using refs safely here: " +
5113-
"https://reactjs.org/link/strict-mode-string-ref",
5113+
"https://react.dev/link/strict-mode-string-ref",
51145114
componentName,
51155115
stringRef
51165116
);
@@ -7116,7 +7116,7 @@ if (__DEV__) {
71167116
error(
71177117
"React has detected a change in the order of Hooks called by %s. " +
71187118
"This will lead to bugs and errors if not fixed. " +
7119-
"For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" +
7119+
"For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" +
71207120
" Previous render Next render\n" +
71217121
" ------------------------------------------------------\n" +
71227122
"%s" +
@@ -7167,7 +7167,7 @@ if (__DEV__) {
71677167
"1. You might have mismatching versions of React and the renderer (such as React DOM)\n" +
71687168
"2. You might be breaking the Rules of Hooks\n" +
71697169
"3. You might have more than one copy of React in the same app\n" +
7170-
"See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
7170+
"See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
71717171
);
71727172
}
71737173

@@ -9624,7 +9624,7 @@ if (__DEV__) {
96249624
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " +
96259625
"You can only call Hooks at the top level of your React function. " +
96269626
"For more information, see " +
9627-
"https://reactjs.org/link/rules-of-hooks"
9627+
"https://react.dev/link/rules-of-hooks"
96289628
);
96299629
};
96309630

@@ -11521,7 +11521,7 @@ if (__DEV__) {
1152111521
"Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" +
1152211522
"%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" +
1152311523
"The above lifecycles should be removed. Learn more about this warning here:\n" +
11524-
"https://reactjs.org/link/unsafe-component-lifecycles",
11524+
"https://react.dev/link/unsafe-component-lifecycles",
1152511525
_componentName,
1152611526
newApiName,
1152711527
foundWillMountName !== null ? "\n " + foundWillMountName : "",
@@ -12117,7 +12117,7 @@ if (__DEV__) {
1211712117
if (boundary.tag === HostRoot) {
1211812118
errorBoundaryMessage =
1211912119
"Consider adding an error boundary to your tree to customize error handling behavior.\n" +
12120-
"Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.";
12120+
"Visit https://react.dev/link/error-boundaries to learn more about error boundaries.";
1212112121
} else {
1212212122
var errorBoundaryName =
1212312123
getComponentNameFromFiber(boundary) || "Anonymous";
@@ -17910,7 +17910,7 @@ if (__DEV__) {
1791017910
error = new Error(
1791117911
"A cross-origin error was thrown. React doesn't have access to " +
1791217912
"the actual error object in development. " +
17913-
"See https://reactjs.org/link/crossorigin-error for more information."
17913+
"See https://react.dev/link/crossorigin-error for more information."
1791417914
);
1791517915
}
1791617916

@@ -18400,7 +18400,7 @@ if (__DEV__) {
1840018400
" }\n" +
1840118401
" fetchData();\n" +
1840218402
"}, [someId]); // Or [] if effect doesn't need props or state\n\n" +
18403-
"Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching";
18403+
"Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching";
1840418404
} else {
1840518405
addendum = " You returned: " + destroy;
1840618406
}
@@ -24410,7 +24410,7 @@ if (__DEV__) {
2441024410
error(
2441124411
"Cannot update a component (`%s`) while rendering a " +
2441224412
"different component (`%s`). To locate the bad setState() call inside `%s`, " +
24413-
"follow the stack trace as described in https://reactjs.org/link/setstate-in-render",
24413+
"follow the stack trace as described in https://react.dev/link/setstate-in-render",
2441424414
setStateComponentName,
2441524415
renderingComponentName,
2441624416
renderingComponentName
@@ -24506,7 +24506,7 @@ if (__DEV__) {
2450624506
"/* assert on the output */\n\n" +
2450724507
"This ensures that you're testing the behavior the user would see " +
2450824508
"in the browser." +
24509-
" Learn more at https://reactjs.org/link/wrap-tests-with-act",
24509+
" Learn more at https://react.dev/link/wrap-tests-with-act",
2451024510
getComponentNameFromFiber(fiber)
2451124511
);
2451224512
} finally {
@@ -24538,7 +24538,7 @@ if (__DEV__) {
2453824538
"/* assert on the output */\n\n" +
2453924539
"This ensures that you're testing the behavior the user would see " +
2454024540
"in the browser." +
24541-
" Learn more at https://reactjs.org/link/wrap-tests-with-act"
24541+
" Learn more at https://react.dev/link/wrap-tests-with-act"
2454224542
);
2454324543
}
2454424544
}
@@ -25733,7 +25733,7 @@ if (__DEV__) {
2573325733
return root;
2573425734
}
2573525735

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

2573825738
// Might add PROFILE later.
2573925739

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<c9fcc719668d07b3a623f14e395c32b8>>
10+
* @generated SignedSource<<9709781bdd6feccf0ca9738138d835d3>>
1111
*/
1212

1313
"use strict";
@@ -1470,11 +1470,11 @@ function convertStringRefToCallbackRef(
14701470
throw Error(
14711471
"Element ref was specified as a string (" +
14721472
stringRef +
1473-
") 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."
1473+
") 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."
14741474
);
14751475
if (1 !== returnFiber.tag)
14761476
throw Error(
1477-
"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"
1477+
"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"
14781478
);
14791479
var inst = returnFiber.stateNode;
14801480
if (!inst)
@@ -2271,7 +2271,7 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
22712271
globalClientIdCounter = 0;
22722272
function throwInvalidHookError() {
22732273
throw Error(
2274-
"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."
2274+
"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."
22752275
);
22762276
}
22772277
function areHookInputsEqual(nextDeps, prevDeps) {
@@ -9173,7 +9173,7 @@ var devToolsConfig$jscomp$inline_1014 = {
91739173
throw Error("TestRenderer does not support findFiberByHostInstance()");
91749174
},
91759175
bundleType: 0,
9176-
version: "18.3.0-canary-30ae0baed-20240301",
9176+
version: "18.3.0-canary-1940cb27b-20240303",
91779177
rendererPackageName: "react-test-renderer"
91789178
};
91799179
var internals$jscomp$inline_1195 = {
@@ -9204,7 +9204,7 @@ var internals$jscomp$inline_1195 = {
92049204
scheduleRoot: null,
92059205
setRefreshHandler: null,
92069206
getCurrentFiber: null,
9207-
reconcilerVersion: "18.3.0-canary-30ae0baed-20240301"
9207+
reconcilerVersion: "18.3.0-canary-1940cb27b-20240303"
92089208
};
92099209
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
92109210
var hook$jscomp$inline_1196 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<749ebcbb693ef8635dc1c79f3b3a628d>>
10+
* @generated SignedSource<<b20c26683aec6ca4ced107db94e0a031>>
1111
*/
1212

1313
"use strict";
@@ -1490,11 +1490,11 @@ function convertStringRefToCallbackRef(
14901490
throw Error(
14911491
"Element ref was specified as a string (" +
14921492
stringRef +
1493-
") 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."
1493+
") 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."
14941494
);
14951495
if (1 !== returnFiber.tag)
14961496
throw Error(
1497-
"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"
1497+
"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"
14981498
);
14991499
var inst = returnFiber.stateNode;
15001500
if (!inst)
@@ -2291,7 +2291,7 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
22912291
globalClientIdCounter = 0;
22922292
function throwInvalidHookError() {
22932293
throw Error(
2294-
"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."
2294+
"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."
22952295
);
22962296
}
22972297
function areHookInputsEqual(nextDeps, prevDeps) {
@@ -9601,7 +9601,7 @@ var devToolsConfig$jscomp$inline_1056 = {
96019601
throw Error("TestRenderer does not support findFiberByHostInstance()");
96029602
},
96039603
bundleType: 0,
9604-
version: "18.3.0-canary-30ae0baed-20240301",
9604+
version: "18.3.0-canary-1940cb27b-20240303",
96059605
rendererPackageName: "react-test-renderer"
96069606
};
96079607
var internals$jscomp$inline_1236 = {
@@ -9632,7 +9632,7 @@ var internals$jscomp$inline_1236 = {
96329632
scheduleRoot: null,
96339633
setRefreshHandler: null,
96349634
getCurrentFiber: null,
9635-
reconcilerVersion: "18.3.0-canary-30ae0baed-20240301"
9635+
reconcilerVersion: "18.3.0-canary-1940cb27b-20240303"
96369636
};
96379637
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
96389638
var hook$jscomp$inline_1237 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

0 commit comments

Comments
 (0)