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
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
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/