Skip to content
Commitwise
Menu

MVI

Also called: Model-View-Intent, Redux-style architecture

Model-View-Intent: the screen has one immutable state; the view sends intents, and a reducer computes the next state.

Definition

In MVI, every user action or result becomes an intent, a pure reducer turns (state, intent) into the next state, and side effects like network calls run outside the reducer and send their results back as intents. Data flows in one direction, which makes changes easy to trace and test. One-off events such as toasts and navigation need special handling so they are not replayed.

In practice

reduce(state, LogInTapped) returns the same state with isLoading = true; the store then starts the login call.

Related terms

Esc

Type to search the whole site.