Reset the handlers when starting over after an error.
This commit is contained in:
parent
090292a324
commit
92e417a9ba
1 changed files with 2 additions and 0 deletions
|
|
@ -258,6 +258,8 @@ class LinkNewDeviceFlowNode(
|
|||
is NavTarget.Error -> {
|
||||
val callback = object : ErrorNode.Callback {
|
||||
override fun onRetry() {
|
||||
linkNewMobileHandler.reset()
|
||||
linkNewDesktopHandler.reset()
|
||||
backstack.newRoot(NavTarget.Root)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue