Skip to main content
The StacSetValueAction allows you to set or update values in the application state. It’s useful for updating state in response to user interactions like button presses.

Properties

Each item in values should contain:
  • key: The state key to set
  • value: The value to assign

Example

Toggle Value on Button Press

Update Multiple Values with Follow-up Action

Chaining with Network Request

For setting initial state when a screen loads (without an action trigger), use the StacSetValue widget instead.