PCSalt
YouTube GitHub

# state-management

3 posts

MVVM vs MVI in Android — Which One and When

A practical comparison of MVVM and MVI architecture patterns in Android — how each works, when to use which, and how to avoid common pitfalls in both.

State Management in Compose — remember, mutableStateOf & ViewModel

Master state management in Jetpack Compose — remember, mutableStateOf, rememberSaveable, state hoisting, and connecting to ViewModel for production apps.

Kotlin Sealed Classes & When Expressions — Modeling State

Learn how Kotlin sealed classes and when expressions work together to model state, handle API responses, and eliminate impossible states in your code.