
MVI pattern
The Model-View-Intent (MVI) pattern organizes software into three parts: the Model, which manages data and business logic; the View, which displays data and handles user interface; and the Intent, which represents user actions or intentions. When a user interacts with the app, the Intent captures this, prompting the Model to update its data. The View then observes these changes and reflects updates on the screen. This unidirectional flow ensures predictable and maintainable code, helping developers manage complex interactions efficiently by clearly separating concerns.