File tree Expand file tree Collapse file tree
samples/sandbox/src/main/kotlin/com/bumble/appyx/sandbox/client/explicitnavigation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import com.bumble.appyx.core.modality.BuildContext
1919import com.bumble.appyx.core.node.ParentNode
2020import com.bumble.appyx.core.plugin.Plugin
2121import com.bumble.appyx.navmodel.backstack.BackStack
22+ import com.bumble.appyx.navmodel.backstack.operation.newRoot
2223import com.bumble.appyx.navmodel.backstack.operation.pop
2324import com.bumble.appyx.navmodel.backstack.operation.push
2425import com.bumble.appyx.sandbox.client.explicitnavigation.RootNode.NavTarget
@@ -44,7 +45,7 @@ class RootNode(
4445 suspend fun waitForChildTwoAttached () = waitForChildAttached<ChildNodeTwo >()
4546
4647 suspend fun attachChildOne () = attachChild<ChildNodeOne > {
47- backStack.push (ChildOne )
48+ backStack.newRoot (ChildOne )
4849 }
4950
5051 suspend fun attachChildTwo () = attachChild<ChildNodeTwo > {
You can’t perform that action at this time.
0 commit comments