ChatApp
ChatApp copied to clipboard
Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
On the Home screen when trying to navigate to the Chat screen, I get an error: Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render. It seems that you cannot call a setState inside a useEffect with the state in the dependency array. Has anyone found a workaround?