You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6633,7 +6633,7 @@ const tests = {
6633
6633
' }\n'+
6634
6634
' fetchData();\n'+
6635
6635
`}, [someId]); // Or [] if effect doesn't need props or state\n\n`+
6636
-
'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching',
6636
+
'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching',
6637
6637
suggestions: undefined,
6638
6638
},
6639
6639
],
@@ -6657,7 +6657,7 @@ const tests = {
6657
6657
' }\n'+
6658
6658
' fetchData();\n'+
6659
6659
`}, [someId]); // Or [] if effect doesn't need props or state\n\n`+
6660
-
'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching',
6660
+
'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching',
Copy file name to clipboardExpand all lines: packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -258,7 +258,7 @@ export default {
258
258
' }\n'+
259
259
' fetchData();\n'+
260
260
`}, [someId]); // Or [] if effect doesn't need props or state\n\n`+
261
-
'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching',
261
+
'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching',
'1. You might have mismatching versions of React and the renderer (such as React DOM)\n'+
285
285
'2. You might be breaking the Rules of Hooks\n'+
286
286
'3. You might have more than one copy of React in the same app\n'+
287
-
'See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.',
287
+
'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.',
'1. You might have mismatching versions of React and the renderer (such as React DOM)\n'+
788
788
'2. You might be breaking the Rules of Hooks\n'+
789
789
'3. You might have more than one copy of React in the same app\n'+
790
-
'See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.',
790
+
'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.',
`Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
1386
+
`Warning: componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
1387
1387
1388
1388
* Move code with side effects to componentDidMount, and set initial state in the constructor.
1389
1389
* 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.
1390
1390
1391
1391
Please update the following components: MyComponent`,
1392
-
`Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
1392
+
`Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
1393
1393
1394
1394
* Move data fetching code or side effects to componentDidUpdate.
1395
-
* 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://fb.me/react-derived-state
1395
+
* 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
1396
1396
* 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.
1397
1397
1398
1398
Please update the following components: MyComponent`,
1399
-
`Warning: componentWillUpdate has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
1399
+
`Warning: componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
1400
1400
1401
1401
* Move data fetching code or side effects to componentDidUpdate.
1402
1402
* 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.
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. '+
1387
-
'Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.',
1387
+
'Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.',
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. '+
1396
-
'Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.',
1396
+
'Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.',
0 commit comments