We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61da93 commit 793ef9bCopy full SHA for 793ef9b
packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js
@@ -269,6 +269,16 @@ const tests = {
269
`,
270
options: [{additionalHooks: 'useCustomEffect'}],
271
},
272
+ {
273
+ code: `
274
+ function MyComponent(props) {
275
+ useCustomEffect(() => {
276
+ console.log(props.foo);
277
+ }, []);
278
+ }
279
+ `,
280
+ options: [{additionalHooks: 'useAnotherEffect'}],
281
+ },
282
{
283
// Valid because we don't care about hooks outside of components.
284
code: `
0 commit comments