I have a module in a module in a modal (say that three times fast!).
The deepest module has some queries that run reactively to changes in the app or the shallower module. I DO NOT want that to happen unless that module is active and being used.
I am stumped as to how to do this effectively. One of the best ways I can think to do this is to check is the module is visible and only run the queries then, but that does not appear to be possible within Retool.
Maybe I can set a flag in local storage if the modal with the module is opened and only run the queries if set? That's my best idea.
Any other way to do it?