ViewModelStoreNavEntryDecoratorDefault



Holds the default functions for the ViewModelStoreNavEntryDecorator.

Summary

Public functions

() -> Boolean

Controls whether the ViewModelStoreNavEntryDecorator should clear the ViewModelStore scoped to a NavEntry when NavEntryDecorator.onPop is invoked for that NavEntry's NavEntry.contentKey

Cmn
android

Public functions

removeViewModelStoreOnPop

@Composable
fun removeViewModelStoreOnPop(): () -> Boolean

Controls whether the ViewModelStoreNavEntryDecorator should clear the ViewModelStore scoped to a NavEntry when NavEntryDecorator.onPop is invoked for that NavEntry's NavEntry.contentKey

The ViewModelStore is cleared if this returns true. The store is retained if false.