-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property 'value' does not exist on type 'SceneVariableState' when using behaviors.ActWhenVariableChanged #1016
Comments
a bit hacky but since I'm using a QueryVariable here it uses an extension of
|
@tredman you're not doing anything wrong, it looks like the docs are stale/incorrect here. SceneVariableState doesn't contain a "value" property because some variable types don't have a string value, for example the Asserting the type (with
Also keep in mind that
|
Hello! I'm trying Grafana Scenes for the first time using a new app bootstrapped by
@grafana/create-plugin
. I'm working through some examples and running into an error when trying to use theActWhenVariableChanged
behavior, described here. Here's my code, more or less copied directly from the the docs.I get the following typescript error when compiling, but the code otherwise seems to work (I see the console log messages when the variable changes as expected).
I'm not really a JS/TS developer so I'm pretty far out of my element but it seems like either the TS config is too strict or the value property is just missing from the
SceneVariableState
definition.Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: