grafana / scenes

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

SceneObject: Cloning with state fix #953

Closed torkelo closed 1 week ago

torkelo commented 1 week ago

Was a bug in https://github.com/grafana/scenes/pull/944 where it now clones the state passed in with the withState function argument. This was not intended.

I had this condition at one point in that PR but for some reason I thought I did not need it, but of course we do.

📦 Published PR as canary version: 5.22.1--canary.953.11666335318.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes-react@5.22.1--canary.953.11666335318.0 npm install @grafana/scenes@5.22.1--canary.953.11666335318.0 # or yarn add @grafana/scenes-react@5.22.1--canary.953.11666335318.0 yarn add @grafana/scenes@5.22.1--canary.953.11666335318.0 ```
scenes-repo-bot-access-token[bot] commented 1 week ago

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