[V220.127.116.11] Possible bug - "OnDisable" is not called for Applications
I'm developing an application built on Garden/Vanilla 18.104.22.168 and I noticed that, when it's disabled, the
OnDisable hook is not invoked. I tried putting a brutal
die() statement in it, logging its execution, printing a message, but it really seems that it's skipped.
I looked through the core files and, while I could see a call for
Plugin::OnDisable(), I could not find a call to
The severity of such bug depends on the application itself. The one I'm working on, for example, creates some routes that would fail if the application is disabled and, therefore, should be removed in the
OnDisable handler. If an application doesn't actually need to do anything in that phase, then there would be no impact.