Skip to content

T8RIN/ScopedViewModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ScopedViewModel

Scoping ViewModel to a @Composable function example

Usage

Add this files to your project and then call scopedViewModel() or rememberScoped() fun if you need a scoped ViewModel

@Composable
fun YourFunction(
  viewModel: YourViewModel = scopedViewModel()
) {
  /*use your scoped viewModel here*/
}

About

Scoping ViewModel to a @composable function example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages