For the complete documentation index, see llms.txt. This page is also available as Markdown.

Refresh Query

The Refresh Query interaction refreshes a component's query and updates the data it displays, without reloading the whole flow or page.

Overview

The Refresh Query Interaction lets you automatically update the information displayed in your Avonni components after launching a flow. Here's why that's powerful:

  • Real-time updates: Say goodbye to manual refreshes! Your components will display the latest data seamlessly, creating a more responsive and intuitive user experience.

  • Time-saver: Users no longer have to wait for pages to reload; information updates happen instantly, saving them time and frustration.

  • Smoother workflows: Create dynamic flows where data changes trigger updates naturally. Everything feels connected and in sync.

Configuration

The interaction re-runs the query of the component that triggers it: a Refresh Query on a Data Table header action reloads that table. Three settings control what the component keeps when it reloads.

Override Refresh Behavior

  • Enabled: The refresh uses the Preserve Selected Items and Stay on Current Page settings below instead of the component's own default behavior.

  • Disabled (Default): The component refreshes the way it normally does.

The Refresh Query interaction in the Flow Interactions panel with Override Refresh Behavior turned on, showing Preserve Selected Items and Stay on Current Page
Override Refresh Behavior on: the two settings below it now apply.

Preserve Selected Items

Requires Override Refresh Behavior to be enabled.

  • Enabled: The component keeps the items the end user had selected. Only the Data Table, List and Timeline support this.

  • Disabled (Default): The selection is reset.

Stay on Current Page

Requires Override Refresh Behavior to be enabled.

  • Enabled: The component stays on the page the end user was on.

  • Disabled (Default): The component returns to the first page.

Example

1. Refreshing Data Tables:

  • Scenario: Admins want to refresh the data displayed on a Data Table without reloading the entire flow.

  • Usage: An admin can add a header action button to the Data Table. Clicking this button will trigger the Refresh Query Interaction, refreshing the data in the table based on the latest query parameters and providing real-time data without manual flow restarts.

2. Enhancing User Interactions within Flows:

  • Scenario: Admins want to improve the user experience by minimizing disruptions, and manual refresh needs within a flow.

  • Usage: Utilizing Refresh Query Interactions allows for more seamless user experiences by enabling dynamic data updates and interactions within a flow without requiring full page or flow reloads, enhancing user engagement and productivity.

These use cases illustrate how admins can leverage the Refresh Query Interaction to create more dynamic, synchronized, and user-friendly flows using the Avonni Components.

Last updated

Was this helpful?