Rebuild State

Watch this on Youtube: https://www.youtube.com/watch?v=ucwzWoiWXfg

The Rebuild State action triggers a rebuild or refresh of a specific state context within the app. This can be used to force the UI to update based on changes in state or to reinitialize parts of the app dynamically.


📦 Properties

Property
Type
Required
Description

State

Dropdown

Yes

Name of the state context to rebuild


✅ Common Use Cases

  • Refreshing UI after external data updates

  • Forcing re-render of components with dynamic content

  • Updating displays after background operations complete

  • Synchronizing UI state with external events

  • Manual refresh triggers for complex state dependencies


⚙️ Default Behavior

By default:

Behavior
Description

Scope

Rebuilds current page/component if no name specified

Propagation

Triggers listeners on the specified state context

UI Update

Forces dependent widgets to re-render

Performance

Only rebuilds specified context, not entire app


🛠️ How to Use

Call External Method action configuration showing message name and payload fields
Call External Method action configuration in Digia Studio
  1. Add the action to a widget event (e.g., onClick, onChanged)

  2. Choose Rebuild State from the action list

  3. Specify stateContextName to target a specific state context


Last updated