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

SceneRefreshPicker: Pass up to date state into setupIntervalTimer during constructor #811

Closed Sergej-Vlasov closed 2 months ago

Sergej-Vlasov commented 2 months ago

setupIntervalTimer was getting refresh: "" and not initialising auto-refresh. Passing initial state manually.

📦 Published PR as canary version: 5.3.5--canary.811.9767690637.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes-react@5.3.5--canary.811.9767690637.0 npm install @grafana/scenes@5.3.5--canary.811.9767690637.0 # or yarn add @grafana/scenes-react@5.3.5--canary.811.9767690637.0 yarn add @grafana/scenes@5.3.5--canary.811.9767690637.0 ```
ivanortegaalba commented 2 months ago

I think, with the new approach, we can close this one, right?

Sergej-Vlasov commented 2 months ago

Closing in favour of https://github.com/grafana/scenes/pull/814