Unanswered: navigationview back button failing on circular items
Unanswered: navigationview back button failing on circular items
i'm pushing views onto a navigationview. some of these views link to other views. so we can up with a circular stack like
[a, b, c, b, etc...]
now, when i use the back button starting at say, the last item 'b' in the above array the back button will work until i get back to the first item 'b' and then the back button will stop working. no erros, nothing. just total, silent failure. i've also tried manually calling .push() on the nav view from this point, and that fails as well.
what about how I am doing this would cause the navigation view to be completely incapacitated like this?
What does the config look like for the b items? Do you use the id or itemId config? Are they the same instance or different instances of the same class?
What does the config look like for the b items? Do you use the id or itemId config? Are they the same instance or different instances of the same class?
i am using itemId not id
the b items are instances of the same class.
have yet to find the underlying issue but have been able to determine that the nav view fails whenever i add a second instance of a class to the navigation stack and then return to the first instance. e.g. if it were
[a, c, b, c]
the back button will stop working when i return to c...but i can keep moving forward in the stack indefinitely with no issues. very strange.
what are some typical causes of nav view silent failure?
so i was able to fix this by removing the itemId config on classes c and b respectively.
I'm at a complete loss for why having an itemId would cause this problem and it'd be nice for future troubleshooters to have an understanding why. Silent component failures like this are massive time sucks
I also had this problem and resolved it by removing the itemId from the views that are added to the navigationview. This is a really nasty bug, I hope it gets documented and fixed.