Actions
Last updated
Was this helpful?
Last updated
Was this helpful?
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:
: How to create, organize and configure actions
: The internals around how actions are executed and the data they expose after successful or unsuccessful execution
: How to test actions without influencing application state
: Full overview of all events that may trigger actions to be executed