I’ve been having trouble with my back button disappearing sometimes when transitioning to child states and I’ve been working on tracking down what’s causing it. I have found a number of people with the same issue, but it seems most have the issue randomly. I have recognized a specific set of circumstances that cause this and I’m hoping to find a way to fix the issue. Here’s what is happening:
Everything works fine on normal start-up of the app. When freshly installed, the app opens directly to the Auth0 login widget. Once I login, everything works as expected. Great. If I am logged into the app and log out, then back in, everything works as expected again. If, however, I open the app after not using it for a while and it it calls the Auth0 login widget after partially loading the app (without populating with data), then this problem arises. The app loads the default tab, again without data, then recognizes I need to login and opens the login widget. Once I login, if I click on any of the links/buttons/items that take me to child sates of that default tab, the child state loads, but there is NO animation and the back button does not show up.
At first I thought maybe this was because I was only requiring login (logInRequired = true) for the abstract state (tabs), but I fiddled around with that and it didn’t fix the issue. Something is happening only when the Auth0 widget is called after the app is partially loaded. Has anyone encountered this issue? Any ideas on how to fix it? I’m not encountering any errors and it doesn’t happen in Chromium browser testing.
I’d be happy to include a codepen, but honestly I’m not sure what to include at this point.
Fixing the back-button issue is most important to me, but ideally the animations as well.