
A search field should change as someone types. If the toolbar and a long list also keep updating, which state change ties them together? Jetpack Compose 1.13 adds recomposition tracing to answer that question. Google announced the stable release on November 18. Its November BOM is 2026.11.01 and the documented prerequisites include Kotlin 2.2 or newer and compileSdk 37.1. Compose November release and upgrade requirements.
Trace a single repeatable interaction
Use an account with a fixed local list and search for the same three letters each time. Wait for the screen to settle before typing. Disable unrelated network refreshes in your test fixture if they can change the result list during capture. Write down which components should change on each keystroke. The search box and matching results belong on that list. A toolbar showing a fixed title usually does not.
Ordinary composition tracing shows when composables execute. The new recomposition mode also records relevant state reads and writes, a string representation of the state and stack information. That lets you trace a change back to a line of code instead of guessing from a composable’s name. Use synthetic search terms when sharing a trace because recorded state can contain what someone typed. Google’s explanation of recomposition trace data.
Follow the write to the reader
Find the update associated with the second character. Locate the state write, then look for the reader inside the toolbar’s composition scope. Perhaps a parent reads the entire search-screen state to extract a title that never changes. As an experiment, give the toolbar its fixed title directly and keep the query read in the search and results area. Preserve the result-filtering behavior while changing who observes the query.
Run the exact same input again. If the toolbar still runs, look for another changing input before rewriting more code. A high event count alone does not prove a problem. Drawing a short title can cost far less than filtering a thousand rows in a single update. Android CLI composition and recomposition capture options.
Measure the user-visible result separately
Google calls out the extra overhead of collecting state data. Turn off recomposition tracing for the before-and-after performance comparison. Use the same device, build settings, list size and timing procedure. Compare frame durations across repeated searches, then check that keyboard focus, cursor position and the visible result set still behave correctly. An optimization is worth keeping when it solves the observed delay without changing the interaction that produced it.
