The navigation api has 3 functions:
- dismiss
- pop
- navigate
A replace method would be useful since there are lots of cases where I have to pop multiple times to go to the main screen. Even though navigate says:
Navigate to a route in current navigation tree. Pushes the specified screen if it isn’t present in the navigation tree, goes back to a created screen otherwise.
The second part of the statement does not work for me. If I have this flow: A -> B -> C, and from C I navigate to A, it feels like it pushes A onto the stack, since the action at the top is not an X (close) anymore, it is a arrow left (go back) action.