blazor-js-components
blazor-js-components copied to clipboard
adding afterStarted/beforeStart so MAUI Hybrid apps work
MAUI Blazor Hybrid doesn't call beforeWebStart or afterWebStarted and instead calls beforeStart and afterStarted.
https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/startup?view=aspnetcore-9.0#javascript-initializers
Note: I'm not an expert on this and the documentation, while noting the different initializers, doesn't really indicate why they're different (so there might be something I'm missing). There might be a reason not to do this (and if so I'd suspect that you'd know), but it does seem to work for me (for both web and MAUI).