3 ms·
The useValidation hook needs to add data to the dependency list of its useEffect or else it will run on each render unnecessarily.
by bacro 5y ago
The useValidation hook needs to add data to the dependency list of its useEffect or else it will run on each render unnecessarily.
- jaredgorski 5y agoHa! Yes. It’s pseudo code though. Please don’t copy and paste it.