Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bacro
· 5y ago · 0 comments
The useValidation hook needs to add data to the dependency list of its useEffect or else it will run on each render unnecessarily.
Comments
[–]
jaredgorski
5y ago
Ha! Yes. It’s pseudo code though. Please don’t copy and paste it.