kentcdodds / use-deep-compare-effect

🐋 It's react's useEffect hook, except using deep comparison on the inputs, not reference equality
https://npm.im/use-deep-compare-effect
MIT License
1.88k stars 84 forks source link

eslint react hooks plugin not calling #60

Closed creativemind1 closed 2 years ago

creativemind1 commented 2 years ago

How can we use react-hooks/exhaustive-deps eslint plugin while using use-deep-compare-effect? Right now it's not throwing any warnings/errors if the required dependencies are missing in the method.

hbendev commented 2 years ago

You have to modify your ESLint configuration, so that the rule is triggered on other hooks other than the built-in ones. See documentation here.