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:
Ensure that the event is propagated to the dashboard scene so that any events subscribed to the root receive it correctly
Replace the event bus for the panel with the one created for the context.
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
```
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 ```