UI effects (messages and commands)
Mateu allows backend methods to return UI effects executed in the browser.
Messages
return new Message("Saved successfully");
Commands
return UICommand.navigateTo("/users");
Mental model
- Message → feedback
- UICommand → control
These effects are returned from backend actions.