top of page
Fine-Grained Composable Scoping: Tying UI and Data Lifecycles at the Compilation Stage
Starts:
26. Juni 2025 um 14:35:00
Ends:
26. Juni 2025 um 15:15:00
Status:
Accepted
Jetpack Compose separates UI into small parts, yet it ties ViewModel lifecycles only to Activities or Fragments. This causes data to outlive its associated UI or be reused inappropriately. We present a fine-grained scoping solution that attaches a dedicated Lifecycle and ViewModelStore to a composable level. By the use of a custom Kotlin Compiler Plugin, generate the necessary code to create and clear the scope automatically. This approach cuts boilerplate code and ensures that data is managed exactly when a composable appears or disappears, offering precise control over UI state in Compose apps.
Speakers
bottom of page