~/talk

Building StateFlows in Android with Jetpack Compose

Talkat droidcon New York 2022 · 2022-09-01..09-02· [android, reactive-programming]
speakerdeck:heyitsmohit
slides:none on file

Molecule turns the Compose runtime into a way to expose presenter logic as StateFlows by running a composable presenter inside a recomposer and emitting its return model to a flow. It uses an API like launchMolecule that accepts a scope, a context clock (or an immediate clock for tests), and the composable, and it supports cold flows too. Cash App uses composable presenters that combine flows, funnel UI events through channels, and test them with Turbine, enabling simpler imperative coroutine code and reliable tests.

AI-written summary · about

  1. 0:00Introduction
  2. 1:18What is Molecule
  3. 3:03Molecule basics and setup
  4. 6:39Converting to Molecule
  5. 9:27Understanding clocks
  6. 13:23Testing with clocks
  7. 17:18Architecture at Cash App
  8. 24:48Testing presenters
  9. 30:48How Molecule works
  10. 36:53Summary and thanks
~/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.