How to use run a query on an expanded row

Hi @cstork

You cannot call a query (cannot use .trigger()) from within a components data source. While you can use Javascript inside of {{}} as a data source, it should be one liner, self-evaluating code. Triggers, promises, and more complex code should be moved to a Javascript query that is triggered on page load, on success of a resource query, or based on some user action.

Yes, in regards to your ask about a whitepaper, I've been looking through our docs, internal notes, blog posts, etc. :disappointed: I don't have an update for you yet, but we have some internal requests for more documentation on this topic. I'll let you know if the team ships any resources that could be helpful. In the meantime, we'll help with questions here on the forum :blush:

:crossed_fingers: These resources might help as well:

This post shares some Javascript best practices.

The debug tool shows specific dependencies of queries/components:

1 Like