-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[release/8.0] Fix SSR page rendering intermediate state instead of the end state of components #52943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release/8.0] Fix SSR page rendering intermediate state instead of the end state of components #52943
Conversation
… components (dotnet#52823) * finish all non streaming pending tasks before rendering ssr page * fix tests * refactor fix for the tests * call Dispatcher.AssertAccess() in AddPendingTask() * add e2e test * fix post request await all non streaming pending tasks; add e2e test * move NonStreamingPendingTasks class to another file * save WaitForNonStreamingPendingTasks into a variable * Update src/Components/test/testassets/Components.TestServer/RazorComponents/Components/ChildComponentThatDelaysLoading.razor Co-authored-by: Javier Calvarro Nelson <[email protected]> * Update src/Components/test/testassets/Components.TestServer/RazorComponents/Components/ParentComponentThatDelaysLoading.razor Co-authored-by: Javier Calvarro Nelson <[email protected]> --------- Co-authored-by: Javier Calvarro Nelson <[email protected]>
Hi @surayya-MS. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the servicing process document. |
Hi @surayya-MS. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge. To learn more about how to prepare a servicing PR click here. |
Same problem with |
Thanks @surayya-MS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as the original PR has already been reviewed.
Hi @surayya-MS. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed. |
@MackinnonBuck any chance the E2E failures are related to this change? |
/azp run |
Looks like it's unrelated as per Surayya's comment |
Azure Pipelines successfully started running 3 pipeline(s). |
They aren't. I did already confirm that earlier. |
[release/8.0] Fix SSR page rendering intermediate state instead of the end state of components
Manual backport of 52823
Description
This PR fixes SSR page rendering end state of components.
The problem was that non streaming pending tasks were not properly awaiited.
Fixes #52131
Fixes #52871
Customer Impact
Without this change customers will have bad experience with SSR pages because in some cases the intermediate state of the components is rendered in the browser. The end state is never rendered. Example:
Add
Child.razor
component to the Blazor Web App project:Update Home.razor to:
Run the app. The browser displays:
but it should display
Regression?
[If yes, specify the version the behavior has regressed from]
Risk
This is a minor change. There are e2e tests for this change as well as manual testing was done.
Verification
Packaging changes reviewed?
When servicing release/2.1