Set App State

The Set App State action allows you to update the global application state. This is useful for managing state that affects the entire app or multiple components, enabling centralized control over app-wide data.

Use Cases

  • Updating user authentication status globally.

  • Managing theme or language preferences app-wide.

  • Synchronizing state changes across multiple pages or components.

Properties

Property
Description

updates

An array of objects describing the state changes to apply to the global app state. Each object contains keys and values to update.

Default Behavior

  • Applies the specified state updates to the global application state.

  • Changes affect all parts of the app that depend on the updated state.

  • No automatic UI rebuild is implied; rebuilds should be handled as needed.

How to Use

  1. Attach the action to a widget event.

  2. Select Set App State from the action list.

  3. Provide the updates array with state changes.

Last updated