Actions are the key ingredient for adding logic to your applications, and for managing interactions with your datasources. Almost like native JavaScript functions, they are small units of code that perform a specific task. They are particularly useful for:

  • Reading and mutating UI component state or app state variables

  • Executing interactions with datasources, like fetching data from a database or API, or writing a file to an AWS S3 bucket

  • Triggering other actions

  • Sending notifications

They could be triggered by UI events which they are associated with, run immediately when the app is loaded, or run periodically at a configured interval. This section covers all you need to know about actions:

  1. Managing actions: How to create, organize and configure actions

  2. Execution model: The internals around how actions are executed and the data they expose after successful or unsuccessful execution

  3. Preview: How to test actions without influencing application state

  4. Triggers: Full overview of all events that may trigger actions to be executed

Last updated