Jennifer Fu
Oct 21, 2020

--

Yes, what you have said is very true. The useEffect can have a flag whether it is the first load or not (useRef). If it is the subsequent loading, it should use load() instead of generate(). Thanks for pointing this out!

--

--

Jennifer Fu
Jennifer Fu

No responses yet