Skip to main content
ERROR is a reactive reference to $error — the error message string available inside on_error callbacks. When an action fails, the framework catches the error and makes its message available through this variable.

Where It’s Available

ERROR is only meaningful inside on_error handlers. Outside that context, $error is undefined. Every action that supports callbacks (on_success / on_error) makes this variable available when the action fails. Typical use: show a toast with the error message, or write it to state so it can be displayed in the UI:

Import