Hello,
I've been building a fairly complex custom component that's using React, AGGrid, and Material-UI, and so far I've had great success getting it to do everything I want it to do. I'm fairly familiar with the triggerQuery and modelUpdate methods that get passed in as well.
What I'm struggling with is a way to "clear" the custom component model, as in to set it back to an empty string such as when the application is freshly loaded, or when clicking the "Reset app state" menu option from the App Actions menu in the top right.
So far I've tried queries to set the model to an empty string, calling customComponent.updateModel({}) passing in an empty object, or trying to clear it from within the component itself... all to no avail.
I don't need to reload the iframe, simply need to clear the model such that when a user is done interacting with the component and closes it out, I can set it back to empty or null.