ProvideCompositionLocals

Provides this as LocalViewModelStoreOwner, LocalSaveableStateRegistry and LocalSavedStateHandleFactory to the content, along with other ProvidedValues.

The SavedStateSupport.performSave method will be called in a DisposableEffect placed after the content. This makes sure that the state is saved before SaveableStateRegistry.Entrys are unregistered. Therefore, all androidx.compose.runtime.saveable.rememberSaveables used in the content will be saved.

Parameters

others
content

The content Composable