When registering an AfterPlatformServicesSetup, it is invoked 2 times
when the method SetupUnsafe calls the AfterPlatformServicesSetup
when the method SetupUnsafe calls AfterApplicationSetupCallback
This is because there is a copy&paste-is issue in AppBuilder:
The AfterApplicationSetupCallback is combined with the AfterPlatformServicesSetupCallback
Describe the bug
When registering an AfterPlatformServicesSetup, it is invoked 2 times
This is because there is a copy&paste-is issue in
AppBuilder
: The AfterApplicationSetupCallback is combined with the AfterPlatformServicesSetupCallbackTo Reproduce
Register an AfterPlatformSericesSetup callback. On the Platforms Browser and Android, they will get called twice
Expected behavior
The callbyck should just be called once - at AfterPlatformServicesSetup
Avalonia version
11.2.1, 11.2.2
OS
WebAssembly, Android
Additional context
I will provide a PR shortly