Compose State & Hoisting

UI › Compose Core

Drills observable state, remember, hoisting, unidirectional data flow, and state ownership in Compose.

Interviewers use this topic to check whether you understand how Compose actually re-renders UI and where state should live. Expect to explain why a TextField won't update without state, distinguish remember from rememberSaveable, refactor a stateful composable into a stateless hoisted one, and justify keeping state in a composable versus a plain holder versus a ViewModel. It separates people who memorized APIs from those who understand the snapshot/recomposition model and unidirectional data flow.

What this covers

Study this topic

Further reading