rememberViewModelStore

Remember an AtomStore using AtomViewModel.

Return

The AtomStore remembered by AtomViewModel.

Parameters

key

The key to identify the AtomViewModel.


fun rememberViewModelStore(viewModelStoreOwner: ViewModelStoreOwner, key: String? = null): AtomStore

Remember an AtomStore using AtomViewModel.

Return

The AtomStore remembered by AtomViewModel.

Parameters

viewModelStoreOwner
key

The key to identify the AtomViewModel.