From the documentation, it seems that the back arrow is executing a “dismiss()” function when pressed. If screens are navigated as such: A > B > C and are layered, is there a way to change the back arrow to a discard rather than dismiss? So it does not save the current object in the view?
You can override the built-in back arrow functionality by using the on-back
attribute within the view
tags in the XML. By default the back arrow functions in the same way as the discard()
function, but can be updated to rather function as a dismiss()
or even a custom function.
There is additional resources on overriding the built-in back button in the documentation here.
1 Like
Awesome. Exactly what I was looking for. Thanks, Jaimie!