How to check if module query input is bound before triggering

Hey thanks for waiting @hansontools! This has actually come up before, see thread below

The recommended pattern from that thread is a null-check guard before triggering, which is essentially your option:

if (onOkay.query) {  onOkay.trigger()}

Or as a one-liner using short-circuit evaluation like above:

onOkay.query && onOkay.trigger()

When the parent app binds a query to onOkay, .query is truthy and .trigger() runs. When nothing is bound, .query is falsy and the trigger is skipped, no error banner.

Hope that helps! Let me know :folded_hands: