I find myself in a situation where the navigation calls are stacking up continuously, as illustrated in the image below.
https://i.sstatic.net/evlFx.png
This poses a problem, especially when I try to logout as it only adds another entry to the navigation, allowing the user to use the back button to view previous screens.
Is there a method to clear the navigation entry history?