Kris Guzman
Oct 28, 2020

Your function must be reinitializing on every render, making useEffect trigger again and again. Wrap your function in a useCallback and the infinite loop should go away

Kris Guzman
Kris Guzman

Written by Kris Guzman

Front end developer. On a mission to explore the world & build amazing software. Connect with me on LinkedIn: https://www.linkedin.com/in/kristopher-guzman/

No responses yet