You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
If you modify BackstackTransitionsTest.assertTransition to build its backstacks out of Map<Int, String>, like so, you crash with NoSuchElementException when popping. We're popping to a list that no longer includes the information to paint the outgoing screen, which is a pretty realistic situation.
val firstBackstack =mapOf(1 to "one")
val secondBackstack =mapOf(1 to "one", 2 to "two")
var backstack by mutableStateOf(if (forward) firstBackstack else secondBackstack)
compose.mainClock.autoAdvance =false
compose.setContent {
Backstack(
backstack.keys.toList(),
frameController = rememberTransitionController(
animationSpec = animation,
transition = transition
)
) { BasicText(backstack.getValue(it)) }
}
If you modify
BackstackTransitionsTest.assertTransitionto build its backstacks out ofMap<Int, String>, like so, you crash withNoSuchElementExceptionwhen popping. We're popping to a list that no longer includes the information to paint the outgoing screen, which is a pretty realistic situation.