Reactjs – Why does useEffect fire multiple after adding functions from warnings exhaustive-deps linter?
Given a simple hook function useFoo with a simple function foo. When I use a function inside of useEffect, everything appears to function fine, but I get a waring from exhaustive-deps saying that function must be listed as a dependency.…