Commit 1e5db3e
authored
Remove await for WASM
## Description
Regression introduced via: #31769
* On Blazor Server, `Blazor.start` returns a promise that resolves when the .NET code starts up and the app becomes interactive
* On WebAssembly:
* Prior to #31769, `Blazor.start` behaves the same as server (the promise resolves when the app becomes interactive)
* Since #31769, `Blazor.start` returns 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
This PR is meant to revert that specific bit of logic, so that we no longer await the `platform.callEntryPoint` function and thus `Blazor.start` returns a promise that resolves when the .NET code starts up and the app becomes interactive. This now matches the behavior from 6.0-preview3.
## Customer Impact
Without this PR we inadvertently introduce a breaking change where the `Blazor.start` promise doesn't resolve until the .NET app exits. This prevents its usage for triggering post-.NET startup logic.
## Regression?
- [x] Yes
- [ ] No
[If yes, specify the version the behavior has regressed from]:
Regression from 6.0-preview3
Regressed by: #31769
## Risk
- [ ] High
- [ ] Medium
- [x] Low
[Justify the selection above]
Returning the `await` logic to what it was prior to dotnet/aspnetcore#31769 which was introduced in Preview 4.
## Verification
- [x] Manual (required)
- [x] Automated: dotnet/aspnetcore#31997
## Packaging changes reviewed?
- [ ] Yes
- [ ] No
- [x] N/A
Addresses dotnet/aspnetcore#31971platform.callEntryPoint (#31978)1 parent 356be02 commit 1e5db3e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments