Retool knows when there are "no queries running", it says so at the bottom of the screen. I want to restrict a button input so that it only fires when there are "no queries running". Can anyone provide me with a curly-braces snippet that evaluates to "True" when there are "no queries running"?
1 Like
You can use the retoolContext.runningQueries
global property. It's an array. If you look in the state, globals you'll find it.
The snippet I've put together is Running Queries = {{retoolContext.runningQueries.length !== 0}}
2 Likes
Nice job!
Just removed the '!' to get the behaviour I was looking for.
2 Likes