Disclaimer: I'm completely new to controller scripting. Yesterday, I've stared my first controller script (written in TypeScript) for the Launchpad Pro MK3: https://github.com/Fannon/Launchpad-Pro ... Controller
Right now I'm having a problem where I got stuck: When changing from an existing project to a new or other project, the state of my controller script gets completely confused.
This of course means that I've got my state / lifecycle management not yet figured out correctly, of course.
However, just calling `host.restart();` fixes the issue for me, as then the state seems to be built up anew.
So the question is: How can I detect that my project has been changed / loaded? How to detect that a user switched between projects? If I can add an observer on that, I can at least work around the current bug. Next, I need to figure out how to avoid this issue in the first place, of course
Thanks!
