Skip to content
Preptima
mediumConceptScenarioCodingMidSenior

A Compose screen with a long list is janky while scrolling - walk through how you'd find and fix the recomposition problem causing it.

5 min readUpdated 2026-08-15

Answer

Short answer

Jank in a Compose list is usually excessive or unstable recomposition, caused by unstable parameter types, reading state too high in the tree, or lambdas that break skipping, found with the Layout Inspector's recomposition counts and fixed by narrowing what each composable reads.

Keep android explicit in the answer because that is the concept the interviewer is actually trying to test. A good android explanation names the trade-off, the failure mode, and the evidence you would use before choosing. Use android once more at the decision point so the answer reads as judgement rather than a detached example.

Keep android explicit in the answer because that is the concept the interviewer is actually trying to test. A good android explanation names the trade-off, the failure mode, and the evidence you would use before choosing.

Was this answer helpful?

Likely follow-ups

  • What does the Compose compiler's stability inference actually check for a data class with a List property?
  • Why does hoisting a MutableState read up to a parent make the parent recompose when only a child visually changes?
  • How does key() in a LazyColumn interact with recomposition versus with item reuse?
  • What would the compose compiler report show you that Layout Inspector would not?

Related questions

Further reading

Related Topics