Y
Hacker News
new
|
ask
|
show
|
jobs
by
dmitryminkovsky
2142 days ago
Not really lots of functions do have to be declared in useEffect for dependency management.
1 comments
nightski
2142 days ago
I'm not aware of any case in which this is true. Effects are run on every render unless you explicitly specify dependencies in the second argument of the hook.
link