~/talk

How to write your own MVI library and why you shouldn't

Talkat droidcon EMEA 2020 · 2020-10-08..10-09· [android]
links:none on file
links:none on file
slides:none on file

Shows a working MVI implementation using Kotlin Coroutines that fits under ~30 lines: state exposed with MutableStateFlow, intents as direct viewmodel methods, reducers run on a single-thread context, and one-off navigation via a buffered Channel exposed as a Flow. Demo loads a list of posts and navigates successfully. Claims this minimalist container lacks DSL scoping, process-death safe state, idling-resource and testing helpers, and recommends using their full library Orbit which adds those missing features and test tooling.

AI-written summary · about

  1. 0:00Introduction to MVI
  2. 2:19Key MVI concepts
  3. 3:49Why not write your own
  4. 5:19Choosing Coroutines
  5. 6:00Live coding the framework
  6. 7:26Defining the state
  7. 9:41Rendering the state
  8. 11:09Handling intents
  9. 12:54Updating state safely
  10. 14:39Refactoring reduce function
  11. 16:05Adding navigation
  12. 18:35Introducing side effects
  13. 21:46Refactoring side effects
  14. 22:48Creating intent function
  15. 24:14Listening to side effects
  16. 25:40Extracting the container
  17. 28:12Making it generic
  18. 30:20Final demo and code
  19. 30:41Should you write your own?
  20. 31:47Introducing Orbit library
  21. 33:33Q&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.