top of page
Mathan Raj Ponram

Mathan Raj Ponram

Mobile Arch, TikTok

Engineering at TikTok, leading initiatives to enhance Android engineering efficiency and architecture design. Expertise in Kotlin, Jetpack Compose, and compiler plugins; optimized build speeds by 66%, reduced QA efforts by 70%, and scaled SDKs to 200M+ DAU. Interested in IDE tooling, MVVM frameworks, and MonoRepo adoption for faster development. Passionate about performance optimization, CI/CD pipelines, and empowering teams through innovative infrastructure solutions.

Fine-Grained Composable Scoping: Tying UI and Data Lifecycles at the Compilation Stage

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.
bottom of page