Skip to content

Commit d2eed48

Browse files
committed
s/wrapped in/returned from/
1 parent 29a09d7 commit d2eed48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7663,7 +7663,7 @@ if (__EXPERIMENTAL__) {
76637663
errors: [
76647664
{
76657665
message:
7666-
'Functions wrapped in `useEvent` must not be included in the dependency array. ' +
7666+
'Functions returned from `useEvent` must not be included in the dependency array. ' +
76677667
'Remove `onStuff` from the list.',
76687668
suggestions: [
76697669
{

packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ export default {
649649
reportProblem({
650650
node: declaredDependencyNode,
651651
message:
652-
'Functions wrapped in `useEvent` must not be included in the dependency array. ' +
652+
'Functions returned from `useEvent` must not be included in the dependency array. ' +
653653
`Remove \`${context.getSource(
654654
declaredDependencyNode,
655655
)}\` from the list.`,

0 commit comments

Comments
 (0)