No triggering queries in custom components?

Hey all we were looking at building some new custom components..

I've used the iframe method in the past which has a way to call triggerQuery (when connecting it with Retool.connectReactComponent)

I'm looking at using the newer custom component system with the retool-ccl tool..

But if I understand correctly, there's no way to trigger queries when building components that way? Thanks

1 Like

Hey there @Andy_Fischer, and welcome to the forum!

Not sure if I understand correctly. However, I've built a couple of custom components in the past weeks and you can definitely trigger queries from whatever event you define within your react component, you can find the related documentation here

So whether is a click, a drag, submit enter, or whatever action, you can map that to a useEventCallBack, give it a name which then will appear in yoru custom component's event handlers in the same way that you see it in other components, e.g. onClick, onDoubleClick, etc.

Let me know if you have questions, or a give ncustom cpomonent idea and I can provide further insight.

Best,
Miguel