blazor-js-components icon indicating copy to clipboard operation
blazor-js-components copied to clipboard

adding afterStarted/beforeStart so MAUI Hybrid apps work

Open LilahTovMoon opened this issue 11 months ago • 0 comments

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).

LilahTovMoon avatar Jan 14 '25 18:01 LilahTovMoon