Skip to content

Conversation

@MackinnonBuck
Copy link
Member

@MackinnonBuck MackinnonBuck commented Jul 23, 2021

Multiple root components start in parallel.
Each root component is added and processed in parallel, rather than waiting for one to become quiescent before adding the next.

PR Description
Hosts now add each root component ignoring the task awaiting quiescence. Then, after all root components are added, the host awaits quiescence for all components.

Addresses #34306

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Jul 23, 2021
@MackinnonBuck MackinnonBuck marked this pull request as ready for review July 23, 2021 18:26
@MackinnonBuck MackinnonBuck requested a review from a team as a code owner July 23, 2021 18:26
Copy link
Member

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

I'm not sure how practical it is to E2E test this. If you think there is a straightforward way then that would be cool, but if it involves adding a load of extra testing infrastructure then I'm not sure the tradeoff would be worth it.

Actually it might be much more reasonable to add unit tests though. I see we already have CircuitHostTest - that could probably be extended to cover this new behavior. What do you think?

@MackinnonBuck MackinnonBuck merged commit 487a068 into main Jul 27, 2021
@MackinnonBuck MackinnonBuck deleted the t-mbuck/parallel-root-components branch July 27, 2021 16:39
@ghost ghost added this to the 6.0-rc1 milestone Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants