Hacker News new | ask | show | jobs
by bacro 1728 days ago
The useValidation hook needs to add data to the dependency list of its useEffect or else it will run on each render unnecessarily.
1 comments

Ha! Yes. It’s pseudo code though. Please don’t copy and paste it.