I have a module which takes in several inputs representing IDs in the database, and some temporary state internal to the module. When the inputs to the module change, I want to set the temporary state to its default values. How do I do this?
I found a workaround in order to do this, but it's not very clean:
Hi @webster! I think your solution sounds good
You might also be able to do something similar with a dummy query that is triggered automatically and watches for changes in the input value. Since it's just a dummy query, you could trigger an update state event on failure. Either way, it is a bit cumbersome to implement, so if your current solution is already working that may be the best fit
Thanks @Tess , do you think that a feature could be added to retool where changing the inputs to a module is its own distinct event?