~/talk

Where to hoist that state in Compose?

Talkat Android Dev Summit 2022 · 2022-10-24..11-14· [android, frontend-architecture]
links:none on file
slides:none on file

Recommendation: hoist UI state only as high as the logic that reads or writes it requires — keep simple UI-only toggles inside composables, lift scroll state to the lowest common ancestor so a JumpToBottom button and the input field can call LazyList APIs, extract complex UI logic into a plain state-holder class, and move business-producing state to a ViewModel so inputMessage survives rotations and suggestions stream via MutableStateFlow and defaults like rememberLazyListState maintain stability. lowest common ancestor

AI-written summary · about

  1. 0:00Intro
  2. 1:08Living in composable
  3. 1:39Lazy Column
  4. 3:27Lazy States
  5. 4:04Business Logic
  6. 5:32Recap
~/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.