<h2 id="currentbackstackentryasstate">currentBackStackEntryAsState</h2>

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@Composable
public fun NavController.currentBackStackEntryAsState(): State<NavBackStackEntry?>
```

Gets the current navigation back stack entry as a [MutableState](/jetpack-compose/androidx.compose.runtime/runtime/interfaces/MutableState). When the given navController
changes the back stack due to a `NavController.navigate` or `NavController.popBackStack` this
will trigger a recompose and return the top entry on the back stack.

#### Returns

| | |
| --- | --- |
|  | a mutable state of the current back stack entry |