I am experiencing an issue with using queries within JSObjects. Even after awaiting query.run() I still have to add delays to make sure accessing query.data doesn't fail. I'm wondering if I am missing something.
The solution to the issue of having to add delays when accessing Query data after running a query in JSObjects is to use the shorthand syntax: "const res = await query.run()". This will always grab the response from the query and eliminate the need for extra delays. The "Query.data" property can still be used to bind query data to widgets, but in raw JS, the shorthand syntax is recommended for accessing the query response.