StableAction
Refresh data
Overview
Reloads the records shown by tables, lists, KPIs and charts so they reflect the latest changes.
Purpose
Create, update and delete actions already refresh the entity they touched. Use Refresh data after workflows, API calls or when another person may have changed data — for example on a “Refresh” button of a dashboard.
Inputs
- Entity (empty = everything) — limit the refresh to one entity, or leave empty to reload every data component on the page.
Configuration
- Place it after the action that changed data. Refreshing everything is fine for small apps; pick an entity on busy pages to avoid flicker.
Outputs
- None.
Example
Refresh after running a workflow
Example
Button “Recalculate totals” › On click: 1. Run workflow Recalculate invoice totals 2. Refresh data Entity: Invoices
Errors
- None. Components that fail to load show their own error state.
Limitations
- Refreshes cached queries and aggregates only; API results bound as a data source are cached for 30 seconds and are not forced by this action.
Advanced
- Schema:
{ type: "refresh_data", entityId? }. Invalidates the TanStack Query keys for records (of the entity, or all) and all aggregates.