onIntent

fun onIntent(intent: Intent)

Process an intent and update state accordingly.

This is the main entry point for state mutations. All state changes must go through this function. It:

  1. Passes the intent to the reducer

  2. Updates the state

  3. Updates undo/redo availability

  4. Handles side effects (events, persistence)

Parameters

intent

The user action or system event

See also

for available intent types