~/talk

Jetpack Compose: Art of the State

Talkat Android Worldwide October 2022 · on Tuesday, 2022-10-25· [android]
slides:none on file

Covers concrete state patterns for Jetpack Compose: use mutableStateOf plus remember to persist across recompositions and rememberSaveable for configuration changes; prefer immutable UI models and the state hoisting pattern (pass state + callbacks, keep state at lowest common ancestor or ViewModel). Shows an Instagram-style post example where mutating a mutable field makes composables unskippable, and recommends kotlinx immutable collections. Recomposition metrics use Android Studio Layout Inspector and a Gradle composable-report to find unnecessary recompositions.

AI-written summary · about

  1. 0:00Introduction to compose
  2. 1:23Declarative vs imperative
  3. 4:12Building UI with compose
  4. 5:58Developing a component
  5. 11:23Understanding state
  6. 13:32State management tools
  7. 17:36State hoisting pattern
  8. 20:43State in view models
  9. 23:40Compose stability
  10. 29:40Handling collections
  11. 32:14Debugging performance
  12. 33:36Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.