filmov
tv
Persisting data in ViewModels with MutableState (Jetpack Compose ViewModel Example)

Показать описание
In this video I show you the best way (for most scenarios) to use an observable data structure in your viewmodels when using jetpack compose. There's lots of different options: LiveData, StateFlow, SharedFlow, MutableState. But in my opinion for simple scenarios you should be using MutableState. It's easy to use and is optimized for jetpack compose.
Follow me:
.
.
Persisting data in ViewModels with MutableState (Jetpack Compose ViewModel Example)
ViewModels & Configuration Changes - Android Basics 2023
Should You Use Compose State or StateFlow in Your ViewModels?
ViewModel Explained - Android Architecture Component | Tutorial
Shared ViewModel - Explained | Android Studio Tutorial
Why ViewModel ? Know how to use ViewModel to persist data during orientation changes.
Room Database - Repositories and ViewModels
Best practices for saving UI state on Android
StateFlow vs. Compose State in a ViewModel
Persisting Data with Room on Android
Android Jetpack: ViewModel
The ViewModel & LiveData Tutorial in Android Studio (Kotlin)
The ULTIMATE Guide to Sharing Data Between Screens in Jetpack Compose
THIS Compose-State Mistake Leads to Problems In Your Code
When Composable met ViewModel & LiveData : Jetpack Compose - 10/46
Room Database View Model and Live Data | using Singleton Pattern
State holders and state production in the UI Layer
【ANDROID STUDIO】Displaying Toast Message With ViewModel and LiveData Room Data Persistence Library...
How does Viewmodel work internally? Deepdive into the ViewModelProvider class
SwiftData with MVVM | Does it make sense?
How to Share Data between Fragment and Activity || Share Data using ViewModel || FoxAndroid || 2021
StateFlow vs. Flow vs. SharedFlow vs. LiveData... When to Use What?! - Android Studio Tutorial
WPF MVVM Tutorial: Build An App with Data Binding and Commands
How to Use String Resources In a ViewModel - Android Studio Tutorial
Комментарии