hey is it possible to use the new PredictiveBackGe...
# decompose
a
hey is it possible to use the new PredictiveBackGesture stuff with Slot based navigation?
Also, I'm not crazy, there is no Compose structure for Slot navigation like there is for stack based navigation right?
my slot based Composable is just a
when
statement currently 😛
Copy code
fun ProjectSelectionUi(
	component: ProjectSelection,
	modifier: Modifier = Modifier
) {
	val slot by component.slot.subscribeAsState()

	when (val destination = slot.child?.instance) {
		is ProjectSelection.Destination.AccountSettingsDestination -> AccountSettingsUi(
			destination.component,
			modifier
		)

		is ProjectSelection.Destination.ProjectsListDestination -> ProjectListUi(
			destination.component,
			modifier
		)

		else -> throw IllegalArgumentException("Child cannot be null")
	}
}
@Arkadii Ivanov do u think i need to switch to stack based navigation?
a
Currently, you would have to handle gestures on your own. Or use Child Stack. 😀
a
ya okay, ill give that a shot