Cant set value of temporary state

I defined a new temporary state variable named new_count and set it's initial value to 0.
But when i try to change the value inside of a js-script the .setValue function is not defined.
How do i set a value of a temporary state variable?

@Noz
You shouldn't have to set the initial new_count value to 0....

but if you type "s" after new_count. you should see setValue appear...


Nope.

OK not sure what version you are running, but maybe it's a bug because it is working for me....I am running on the free version 2.94.6

image

Ok for some reason refreshing the page did the trick.

I don't know why, but i assume this is just webtools being garbage usual.

1 Like