I ran into this issue after replacing SpotGrid with a List of Spot components in ProfileView. What happens, is essentially, an infinite loop of routes.
Eg:
Navigate to Profile tab
Click on an avatar icon in one of the Spot components.
We went from ProfileView to ProfileView, this happens infinitely.
Some ideas to how this can be resolved:
Inside the Spot component, use the Navigator to check if ProfileView is present in the route stack. If it is present, nothing should happen when the avatar is tapped on.
If we are on ProfileView and tap on a Spot component, we're routed to SpotView and if we click on the avatar icon again, a new ProfileView is mounted. The route stack should be checked for ProfileView, and if it's present, perform a simple .pop().
I ran into this issue after replacing
SpotGrid
with aList
ofSpot
components inProfileView
. What happens, is essentially, an infinite loop of routes.Eg:
ProfileView
toProfileView
, this happens infinitely.Some ideas to how this can be resolved:
ProfileView
is present in the route stack. If it is present, nothing should happen when the avatar is tapped on.SpotView
and if we click on the avatar icon again, a newProfileView
is mounted. The route stack should be checked forProfileView
, and if it's present, perform a simple.pop()
.