ViewModelStoreNavEntryDecorator


object ViewModelStoreNavEntryDecorator


Provides the content of a NavEntry with a ViewModelStoreOwner and provides that ViewModelStoreOwner as a LocalViewModelStoreOwner so that it is available within the content.

This requires that usage of the SavedStateNavEntryDecorator to ensure that the NavEntry scoped ViewModels can properly provide access to SavedStateHandles

Summary

Public functions

open Unit
@Composable
DecorateBackStack(backStack: List<Any>, content: @Composable () -> Unit)
open Unit

Public functions

DecorateBackStack

@Composable
open fun DecorateBackStack(backStack: List<Any>, content: @Composable () -> Unit): Unit
@Composable
open fun <T : Any> DecorateEntry(entry: <Error class: unknown class><T>): Unit