How do you stop listening to events when the panel/plugin is closed?

I know there are some lifecycle hooks using entrypoints.setup, but most of them still don’t work as needed… Now, I have some event listeners that call functions that I don’t want to have around all the time, when the plugin and panel is closed. How do you check for closing and reopening?


You have to use listener and listen for specific event names
Note: some of those commands are my own.

1 Like

Thank you very much! Exactly what I was looking for :slight_smile: