ChatApp icon indicating copy to clipboard operation
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.

Open ChrisMungiria opened this issue 11 months ago • 0 comments

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?

ChrisMungiria avatar Mar 24 '24 14:03 ChrisMungiria