# Data Flow Patterns

> Data Flow Patterns in the Mobile Action Pro course.

- URL: https://dantech.academy/en/courses/kotlin-accelerator/engineer-builder/06-clean-architecture/lesson-08-data-flow-patterns
- Course: [Mobile Action Pro](https://dantech.academy/en/courses/kotlin-accelerator.md)
- Module: Clean Architecture in Depth
- Duration: 25 min
- Difficulty: intermediate
- Access: Enrolled students
- Tiếng Việt: https://dantech.academy/courses/kotlin-accelerator/engineer-builder/06-clean-architecture/lesson-08-data-flow-patterns.md

## Objectives

- Trace state going up from DataStore to MenuViewModel and the UI
- Trace events going down when a round ends, through a side effect and a use case
- Choose Flow, StateFlow and SharedFlow in the right places, including for one-time navigation events

## In this lesson

1. Lesson Goal
2. Part 1: Unidirectional Data Flow
3. Part 2: Upward, From The Player Profile To The Menu
4. Part 3: Downward, Finishing A Round
5. Part 4: The DRE Loop Inside The ViewModel
6. Part 5: One-Time Events
7. Practice Exercise
8. Code Reading Path
9. Signs To Avoid
10. References
11. Key Points

## Study with an AI agent

The full lesson is for students of this course. Students open the lesson on the web and press **Markdown** to copy all of it, then paste it into Claude, ChatGPT, Cursor or whichever agent you use. Faster: mint a token at `/profile/ai-agents` and your agent reads lessons over MCP.

- [Join the course](https://dantech.academy/en/kotlin-accelerator/checkout)

---

- Previous lesson: [Managers For Complex Orchestration](https://dantech.academy/en/courses/kotlin-accelerator/engineer-builder/06-clean-architecture/lesson-07-manager-pattern.md)
- Next lesson: [Mapping Between Layers](https://dantech.academy/en/courses/kotlin-accelerator/engineer-builder/06-clean-architecture/lesson-11-mapping-layers.md)
