grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
133 stars 20 forks source link

VizPanel: React to RefreshEvent for non-data changes #852

Closed ivanortegaalba closed 1 month ago

ivanortegaalba commented 2 months ago

This refers to #90538

Problem After attempting to fix this in #838, we discovered that the panels were not receiving the intended event because they were receiving the general app event instead of the specific panel event.

Solution This pull request addresses two main issues:

This ensures that the event subscribed to is the same event emitted, as they are obtained through the same mechanism.

📦 Published PR as canary version: 5.7.1--canary.852.10167028474.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes-react@5.7.1--canary.852.10167028474.0 npm install @grafana/scenes@5.7.1--canary.852.10167028474.0 # or yarn add @grafana/scenes-react@5.7.1--canary.852.10167028474.0 yarn add @grafana/scenes@5.7.1--canary.852.10167028474.0 ```
grafanabot commented 1 month ago

:rocket: PR was released in v5.7.2 :rocket: