Compose Multiplatform Viewmodel Base

A shared ViewModel base class for Compose Multiplatform — container-aware so subclasses can pull extra dependencies without constructor threading, with one loading/error surface for every screen — and the blocking resource-lookup hazard that such a base almost always grows. Use when every screen is re-implementing its own loading dialog, when a base class needs a dependency only some subclasses use, or when app start stutters on the main thread before anything is drawn.

maxrave-dev afdee84 8.4 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/compose-multiplatform-viewmodel-base commit afdee846f6

Frequently asked questions

npx skillmds@latest add maxrave-dev/compose-multiplatform-viewmodel-base