kotlin-multiplatform-compose-state-container
Installation
SKILL.md
When to Use This Skill
Use when you need to:
- Decide whether state belongs in
remember,rememberSaveable, or aViewModel - Understand what "survives recomposition" vs "survives config change" actually means
- Implement a custom
SaverforrememberSaveablewith a non-bundleable type - Scope a ViewModel to a nav back-stack entry vs the whole nav graph
- Diagnose state being lost on screen rotation or back navigation
Trigger keywords: remember vs ViewModel, rememberSaveable, state container, when to use ViewModel, ephemeral state, state survival, config change state, process death state, custom Saver, nav-scoped ViewModel, state lost on rotation.
Freshness rule: Compose state survival and nav-scoped ViewModel APIs change with lifecycle and navigation releases — recheck the Jetpack and CMP docs before upgrading.