fix: refresh data app dashboard tiles with the dashboard refresh button#23430
Merged
Conversation
The dashboard refresh button re-ran chart queries but left embedded data app tiles untouched. Data apps run their queries inside the sandboxed iframe via the postMessage bridge, so they can't piggyback on the React Query invalidation that refreshes charts. Two pieces, both driven by clearCacheAndFetch: - Add a monotonic refreshCounter to the tile-status context, baked into the iframe URL as &r= to force a reload so mount-time queries re-fire. - Forward invalidateCache through AppIframePreview to useAppSdkBridge, which stamps it onto every metric-query POST — the same flag chart tiles send on refresh — so the app's queries bypass the warehouse cache. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🧪 Test Selection✅ Tests that will run
⏭️ Tests skipped (no relevant file changes detected)
|
|
Docs PR opened: lightdash/mintlify-docs#688 Added a section to the Data apps guide explaining how data app tiles behave on dashboards, including refresh behavior. |
|
Your preview environment pr-23430 has been deployed. Preview environment endpoints are available at: |
Preview Environment🌐 URL: https://lightdash-preview-pr-23430.lightdash.okteto.dev 📋 Logs: View in GCP Console 🔧 SSH: |
lightdash-bot
pushed a commit
that referenced
this pull request
May 22, 2026
## [0.3007.2](0.3007.1...0.3007.2) (2026-05-22) ### Bug Fixes * refresh data app dashboard tiles with the dashboard refresh button ([#23430](#23430)) ([96cb5aa](96cb5aa))
Collaborator
|
🎉 This PR is included in version 0.3007.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to: https://linear.app/lightdash/issue/PROD-7814/i-want-to-invalidate-or-refresh-cached-query-results-from-an-app
Description:
The dashboard refresh button re-ran chart queries but left embedded data app tiles untouched. Data apps run their queries inside the sandboxed iframe via the postMessage bridge, so they can't piggyback on the React Query invalidation that refreshes charts.