AceMobileInterview

Android track

General topic questions

DerivedStateOf

MediumCommon

Free section · general topics & algorithms

When should you use derivedStateOf?

Reveal model answer
When computing from frequently changing state but result changes rarely—reduces recompositions (e.g. list scroll threshold).
Coroutines & DispatchersCompose Recomposition Triggers