Get information about triggering Object/Component

In a Query I want to access information (eg name, attribute values) about the calling/triggering entity (eg a component, another query, etc)

eg event.currentTarget

Details: I specifically dont want to use "additionalScope". Imo it makes code way harder to maintain when I sprinkle triggers+additionalScope throughout all components in an app.

Thanks!

1 Like

Hello @perelin,

Have you tried using {{ event.currentTarget }} directly in your query, or is this not an option for you?

If a component is triggering a query, that triggered query has access to triggeredById. Unfortunately, this doesn't work for queries triggering other queries

The state tab & debug console will give some information about what elements control a query. For example:

We have a feature request on file for improvements in surfacing the trigger source of running queries