-
Notifications
You must be signed in to change notification settings - Fork 0
(MVI) Code Summary
Devrath edited this page Jun 8, 2021
·
5 revisions
-
MVIarchitecture is a bit more involved compared to other architectures. - This is very true when implementing more things in projects like a
repository,making network requestsetc. -
MVIhelps in organizing your application in a highly structured way in real-world cases.
INTENT <----------------> ACTION <----------------> RESULT <----------------> STATES
-
INTENT---> User initiates the intent. -
ACTION---> Intent causes an action. -
ACTION---> Action results in state. - Each state is represented by the things it does.
- So for each state we have an
interface.-
Viewprovidesintentsto the view model -
ViewModelholistically processes the intents and emits the states that a view can receive. - Finally
ViewModelrenders the results to theview
-