You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
#12
Open
ChrisMungiria opened this issue
Mar 24, 2024
· 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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: