JS queries doesn't return data

Javascript queries return data when it contains a return on preview but it is not possible to use this data on a table, for instance, since {{ query11.data }} is not available [1].
Is it a bug?
[1] Scripting Retool

Hey @davidls – by default, JS Queries don’t run on page load, they need to be triggered by another query first. (Running the preview does not populate {{ query11.data}} for the end user.)
What does your query look like? Can you trigger it on success of another query that runs on page load? Or can you enable the option in the “Query Timing” Section to run the query on page load?