After this lesson you will
- Wire the ViewModel as a composition boundary instead of turning it into a second reducer
- Bring async results back into the state machine by dispatching result actions from executeAsyncOp
Duration12 min
DifficultyIntermediate
Wire The ViewModel To The DRE Store
Understand the ViewModel's role in the DRE architecture pattern.
- 01Lesson Goal
- 02Part 1: What Role Does The ViewModel Play In The DRE Pattern?
- 03Part 2: How DRE Handles The Submit Answer Logic
- 04Part 3: executeAsyncOp Brings Results Back As Actions
- 05Part 4: Derive Render State, Keep One-Time Events Separate
- 06Part 5: ensureGameStarted And The Route's Lifecycle
- 07Code Reading Path
- 08Bad Smells
- 09Key Takeaways
Topics: mobile-action-pro, mvvm-state-machine
9 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: What Role Does The ViewModel Play In The DRE Pattern?, … — plus 114 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in