Problem
Using a boolean as a scene object state was causing errors where "enable" in the state was the state itself. This was discovered while creating tests for this PR. This state appears when calling enable() method even when using properly the initialization. This is because SceneObjectState expects to receive as parameter always the scene state
Solution
The constructor parameters should be state timer. Also create some tests
📦 Published PR as canary version: 4.0.5--canary.662.8483224466.0
:sparkles: Test out this PR locally via:
```bash
npm install @grafana/scenes@4.0.5--canary.662.8483224466.0
# or
yarn add @grafana/scenes@4.0.5--canary.662.8483224466.0
```
Problem Using a boolean as a scene object state was causing errors where "enable" in the state was the state itself. This was discovered while creating tests for this PR. This state appears when calling
enable()
method even when using properly the initialization. This is because SceneObjectState expects to receive as parameter always the scene stateSolution The constructor parameters should be state timer. Also create some tests
📦 Published PR as canary version:
4.0.5--canary.662.8483224466.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes@4.0.5--canary.662.8483224466.0 # or yarn add @grafana/scenes@4.0.5--canary.662.8483224466.0 ```