I have wanted this feature for a while but this post crystalized my ask: Why does Retool runs all queries inside a model, regardless if they have a disable flag?
I often put a module in a modal or otherwise hidden until the user needs to interact with it. If the user never interacts with the module, then any queries it runs affect performance. Especially if it is tied to a table's selected row or other case that causes it to constantly requery. There may be other use cases where even if the module is visible, you do not want to run it's queries until a particular condition exists.
I have gotten around this by setting all module queries to be disabled if a flag, passed in through an input, is not set.
What I would like is a module setting, that if set to false, disables all queries in the module. Another option is to disable all queries for a module that is not currently painted. Those two would give us a bunch of options.
I would also want this property to be visible to the module itself in case it has other nested modules to pass this property on to.