> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/dynamic-components/component-builder/interactions/refresh-all-queries.md).

# Refresh All Queries

The Refresh All Queries interaction reloads the data behind the page's components so they show the latest records.

## Overview

The Refresh All Queries interaction triggers a refresh of the data queries executed by your dynamic components. Use it after an action that modifies data — create, update, or delete — to ensure the components on the page display up-to-date information.

This is the interaction most commonly chained after record operations: without it, a Data Table or list may keep showing stale rows until the user manually reloads the page.

***

## Configuration

By default, the interaction refreshes the data queries of all dynamic components on the page. Two options let you narrow that scope:

* **Refresh Current Component Only**: If enabled, only the data queries within the current dynamic component are refreshed. If disabled (or not set), all dynamic components on the page refresh. Use this to limit the refresh impact and improve performance when only one component needs updating.
* **Exclude Triggering Component**: If enabled, the component that triggers the refresh does not refresh its own data query. Use this when the triggering component has already updated its state locally and does not need to re-fetch data.

{% hint style="info" %}

#### Refreshing a Specific Component

If you need to refresh one particular component (rather than the whole page or the whole current component), use the [**Refresh Query**](/dynamic-components/component-builder/interactions/refresh-query.md) interaction instead — it targets components by API name.
{% endhint %}

***

## Example

A typical chain on a "Delete" button:

1. Delete Record: Removes the record from Salesforce.
2. On Success -> Refresh All Queries: The deleted row disappears from every list on the page.
3. On Success -> Show Toast: Confirms the deletion to the user.

If the delete only affects data shown inside the current Dynamic Component, enable Refresh Current Component Only so unrelated components on the page aren't re-queried unnecessarily.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.avonnicomponents.com/dynamic-components/component-builder/interactions/refresh-all-queries.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
