Hooks in modules

  • Goal: to trigger a query on the parent page when an action is performed in a module

  • Steps: Create a module. Go to the panel where you can add inputs and outputs. See that there appears to be no place to put hooks, and that the inputs and outputs must be serializable values

  • Details: I have a module that contains a form. when fields change on that form, i'd like to inform the parent page.

Thanks for reaching out, @code_monk!

It's currently possible to pass parent queries into a module that can then be triggered from within the module. You can read more about this pattern here.

By triggering the query with additionalScope, this pattern is definitely capable of exposing your form data to the encapsulating app. Let me know if you have any specific questions about this implementation!