Switch your coding life·Sep 28Kotlin Coroutines: coroutineScope vs withContext vs supervisorScope vs viewModelScopeWhile practising Kotlin Coroutines, I encountered a seemingly simple question:
Manohari Jayachandran·Sep 16MVVM Explained: Refactoring the Task Tracker, ProperlyPart 1 built a working Task Tracker in plain WPF, and closed by naming three pain points left visible on purpose, business logic tangled…
CodeWall Edu·Sep 9Android — ViewModel နဲ့ SavedStateHandle ကို ဘယ်လိုတွဲသုံးမလဲ?Android မှာ ViewModel သုံးရတဲ့ အဓိကအကြောင်းရင်းတစ်ခုက Configuration Change ဖြစ်တဲ့အခါ UI State ကို ထိန်းထားနိုင်ဖို့ပါ။ ဥပမာ Screen Rotate…
Ashutosh Kumar·Sep 8Inside Android ViewModel: What Actually Survives a Configuration Change, and HowA ground-up look at ViewModelStore, ViewModelStoreOwner, Factory/CreationExtras, SavedStateHandle, and how Compose’s viewModel() plugs into…
Anna Felix·Sep 8🔐 SavedStateHandle in Android — Interview Cheat Sheet 💡📚SavedStateHandle is a key-value container provided by Android Jetpack that allows a ViewModel to save and restore small amounts of…
Switch your coding life·Sep 6Android — Retrying the flow after initIt is a common but not recommended way to start the initial request in the init block. (Here is a better way)
Rodrigo Kirch·Sep 1Under the Hood of Android ViewModel: How It Survives Configuration ChangesDemystifying ViewModelStoreOwner, onRetainNonConfigurationInstance(), and SavedStateHandle to understand how Android state retention…
Romman Sabbir·Aug 20ViewModel: Lifecycle, Storage, Factory & CleanupHow Android ViewModel Works Under the Hood: Complete Lifecycle, Storage, Factory & Cleanup Flow
CodeWall Edu·Aug 17Android ViewModel ကို ဘာကြောင့်သုံးသင့်သလဲ?Android App တစ်ခုရေးတဲ့အခါ Screen တစ်ခုရဲ့ data၊ loading state၊ error message နဲ့ user action တွေကို Activity သို့မဟုတ် Fragment ထဲမှာပဲ…
Aakash Gavle·Aug 16How Does ViewModel Survive Configuration Changes?I don’t think there’s been a single interview where this question wasn’t asked to me. Sometimes the interviewer is happy with a short…