So I have a react panel plugin that launches a modal, which I put the
.showModal() call inside the App’s
componentDidMount() function. The issue is, when I back out of the plugin back to the list of installed ones in the panel, the modal no longer presents when clicking back into my plugin. Also if the plugin happens to be active and I open a new doc, it will present the modal.
Basically, I only want the modal to present when clicking on it from the main list of installed plugins. Is there some other place within the code to call
showModal() or some other flow I should use?