<div class='sourceset sourceset-android'>Android</div>

```kotlin
PopUntilScaffoldValueChange,
```

Pop destinations from the backstack until there is a change in the scaffold value.

For example, in a single-pane layout, this will skip entries until the current destination
is a different [ThreePaneScaffoldRole](/jetpack-compose/androidx.compose.material3/material3-adaptive/classes/ThreePaneScaffoldRole). In a multi-pane layout, this will skip entries until
the [PaneAdaptedValue](/jetpack-compose/androidx.compose.material3/material3-adaptive/classes/PaneAdaptedValue) of any pane changes.