I am building a module that depends on data from a query (imported from the query library) to populate a multiselect dropdown. The parent app that I am importing the module into also runs this same query. Is it possible to import the data from the query run by the parent app into the module so that it doesn't run twice?
yes, absolutely, you'd need to expose the dataset via an Input property of your Module - you can then disable the query in the module to only run if the parent app doesn't pass in that data
Having said that, if you've cached that query then having it "run twice" should be minimal overhead as the cached version should return almost instantly. Totally agree on it being better to run once and share the data though.
Thanks so much!