Can plug-in "components" talk to each other?

Is it possible for a plug-in’s “element” or “action” component to access data returned from the same plugin’s “API” component?

Let’s say, for example, that I wanted to trigger some custom JS code each time data are fetched from an API call. How does my code get notified? Is there a hook provided that would notify and/or allow access to the data returned from the API call?

Not sure if this article from coaching bubble solves the issue, but may give you some ideas.