ProvideCompositionLocals
fun SavedStateSupport.ProvideCompositionLocals(vararg others: ProvidedValue<*>, content: @Composable () -> Unit)(source)
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
Other ProvidedValues.
content
The content Composable