ESLint Rule: react-hooks/exhaustive-deps


Updated Jun 6th, 2022

React Hook useEffect has a missing dependency. But the only reason it is missing is because I had to fix the “no-inner-declarations” error!

You can apparently leverage useMemo or useCallback to avoid the error but I’m using a reducer function so this isn’t as straightforward.