Flux: Utilize unidirectional data flow ...
summary
Explains applying Flux to Android with concrete code: Dagger for injection, EventBus dispatcher (or RxJava/LiveData alternatives), action sealed classes, stores as the sole state holders, and PublishedSubject streams for loading plus a data binding observable ArrayList for a RecyclerView-backed user list. Builds a user-list + detail demo where a favorite tap dispatches a favorite action, the store updates the model, and both screens reflect the change immediately, showing the pattern reduces duplicated sync code and scales reuse.
AI-written summary · about
chapters (8)
- 0:00Start
- 1:21What is Flux?
- 2:27Simple
- 9:39Create & Dispatch Action
- 17:15Streaming Loading State Change Using RxJava
- 18:29Streaming UserList Change Using Data Binding
- 24:42Code Consistency
- 25:42The logic inside Store becomes the intuitive specification
related talks
25mFlux Architecture with Xamarin
45mExploring the possibilities of Unidirectional Data Flow Architectures on Android (en)
19mKotlin Flows and Channels for Android
39mUnidirectional data flow on Android using Kotlin
31mUnidirectional Data Flow with...
26mFlux over the Wire
36mFunctional MVVM using RxJava and Android Data Binding
45mImplementing Modern Android Architecture
