-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-blazor-boot-upfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyThis issue is related to and / or impacts Blazor WebAssembly
Milestone
Description
Follow-up from #31769 (review)
It looks like an unintended consequence of #31769 was changing the behavior of the promise we return from Blazor.start:
- On Blazor Server,
Blazor.startreturns a promise that resolves when the .NET code starts up and the app becomes interactive - On WebAssembly:
- Prior to this PR,
Blazor.startbehaves the same as server (the promise resolves when the app becomes interactive) - Since this PR,
Blazor.startreturns a promise that doesn’t resolve until the .NET app exits, which typically means never, and hence prevents its usage for triggering post-.NET startup logic
- Prior to this PR,
The fault here is not in the PR, but is with us not previously having added any E2E coverage for this behavior on WebAssembly (though we do have coverage for it on Server).
Ideally we should fix this before preview 4 ships.
Possible fix
The absolute simplest thing to do would be just removing the await keyword from the line where we call platform.callEntryPoint. Going further, it would be great to also add an E2E test for this behavior on WebAssembly.
captainsafia, TanayParikh and lewing
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-blazor-boot-upfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyThis issue is related to and / or impacts Blazor WebAssembly