Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in android-viewmodel

'ViewModelProviders' is deprecated. After upgrading lifecycle-extensions:2.1.0 to 2.2.0-alpha05

How to get LiveData from Room?

How to properly access UI state from ViewModel in onCreate() method so that UI is updated automatically

Implementing CoroutineScope in ViewModel

Unit test ViewModel using repository pattern and LiveData

Inject a ViewModel in an Espresso test with Hilt and Jetpack Compose

Struggle to get the same ViewModel instance

Koin 2 problem with creating scope for feature in Android project

Which is better to use for API calls, Dispatcher.IO or Dispatcher.Main?

Why do I need ViewModelFactory in android?

How to test AndroidViewModel in unit test

Is it ok to use sharedPrefrence with Coroutine kotlin

What is the difference between navGraphViewModels and activityViewModels?

Why recomposition happens when call ViewModel in a callback?

Why does a composable recompose while seemingly being stateless (the only passed parameter is a function, not a state)

How to initialize multiple parameters in a view model for Jetpack Compose the right way?

Android Jetpack Compose: ViewModel state resetting on tab switch

Android: Correct way to initialize ViewModel with dependencies, ViewModelProviderFactory

Android Studio Loaders have been deprecated as of Android P (API 28)?

Can we pass viewmodel as parameter to another compose function?