Skip to content

Commit

Permalink
s/wrapped in/returned from/
Browse files Browse the repository at this point in the history
  • Loading branch information
poteto committed Oct 19, 2022
1 parent 29a09d7 commit d2eed48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7663,7 +7663,7 @@ if (__EXPERIMENTAL__) {
errors: [
{
message:
'Functions wrapped in `useEvent` must not be included in the dependency array. ' +
'Functions returned from `useEvent` must not be included in the dependency array. ' +
'Remove `onStuff` from the list.',
suggestions: [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ export default {
reportProblem({
node: declaredDependencyNode,
message:
'Functions wrapped in `useEvent` must not be included in the dependency array. ' +
'Functions returned from `useEvent` must not be included in the dependency array. ' +
`Remove \`${context.getSource(
declaredDependencyNode,
)}\` from the list.`,
Expand Down

0 comments on commit d2eed48

Please sign in to comment.