Hey @goetz, If you select "Keep variable references inside the query in sync with your app." on the Advanced tab of the query editor for the JS query where you're updating the Temp State variable, then you should be able to reference the updated value of the Temp State variable in your script.
\
Hope that helps!
