In our app we check whether we’re on the destination that we expect before navigating. That is for a button click, we only navigate if current navigation id == id for screen on which the button is placed
d
dewildte
04/21/2020, 3:54 PM
I tie the button click to a Command.
The button's
isEnabled
is always equal to the Command's
isExecutable
boolean.
When the command is invoked it changes
isExecutable
to false
while it is running. This in turn is observed by the Button and the button will disable itself while the command is running.
Also the Command can be asked if a navigation is possible by the