<h2 id="localownersprovider-saveablestateholder-content">LocalOwnersProvider</h2>

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

```kotlin
@Composable
public fun NavBackStackEntry.LocalOwnersProvider(
    saveableStateHolder: SaveableStateHolder,
    content: @Composable () -> Unit,
)
```

Provides `this` `NavBackStackEntry` as `LocalViewModelStoreOwner`, [LocalLifecycleOwner](/jetpack-compose/androidx.compose.ui/ui/properties/LocalLifecycleOwner) and
[LocalSavedStateRegistryOwner](/jetpack-compose/androidx.compose.ui/ui/properties/LocalSavedStateRegistryOwner) to the `content` and saves the `content`'s saveable states with
the given [saveableStateHolder](/jetpack-compose/androidx.compose.runtime/runtime-saveable/interfaces/SaveableStateHolder).

#### Parameters

| | |
| --- | --- |
| saveableStateHolder | The [SaveableStateHolder](/jetpack-compose/androidx.compose.runtime/runtime-saveable/interfaces/SaveableStateHolder) that holds the saved states. The same holder should be used for all `NavBackStackEntry`s in the encapsulating [Composable](/jetpack-compose/androidx.navigation/navigation-compose/functions/composable) and the holder should be hoisted. |
| content | The content [Composable](/jetpack-compose/androidx.navigation/navigation-compose/functions/composable) |