~/talk

Mastering Jetpack Compose Side-effects

TalkinJapaneseat DroidKaigi 2023 · 2023-09-14..09-16· [android]
name:Kenji Abe
links:none on file
slides:none on file

Explains eight Jetpack Compose side‑effect APIs and what each does: LaunchedEffect (starts coroutines cancelled on key change or leaving composition, shown via snackbars and delays), rememberUpdatedState (avoids captured‑old‑value bugs so delayed tasks see the latest argument), derivedStateOf (prevents excess recompositions for scroll‑driven UI), DisposableEffect (lifecycle cleanup), produceState (background state production), and snapshotFlow (create observable Flows from snapshot state).

AI-written summary · about

  1. 0:00Compose side-effect overview
  2. 3:55Launch effect basics
  3. 10:02Launch effect coroutines
  4. 12:07Remember update state
  5. 18:53Remember update use cases
  6. 25:05Side-effect roles scenarios
  7. 29:01Delight state tips
  8. 32:12Produce state mechanics
  9. 35:03Snapshot flow reverse use
  10. 37:11Summary side-effect importance
~/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.