-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[Blazor] Enables the client to initiate blazor server-side renders #13147
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
[Blazor] Enables the client to initiate blazor server-side renders #13147
Conversation
236bc70
to
dce881e
Compare
src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.netcoreapp3.0.cs
Show resolved
Hide resolved
src/Components/Server/src/Microsoft.AspNetCore.Components.Server.csproj
Outdated
Show resolved
Hide resolved
src/Components/test/testassets/ComponentsApp.Server/Pages/_Host.cshtml
Outdated
Show resolved
Hide resolved
src/Mvc/Mvc.ViewFeatures/src/Microsoft.AspNetCore.Mvc.ViewFeatures.csproj
Outdated
Show resolved
Hide resolved
src/Shared/Components/ComponentDescriptorSerializer.Deserialize.cs
Outdated
Show resolved
Hide resolved
src/Shared/Components/ComponentDescriptorSerializer.Deserialize.cs
Outdated
Show resolved
Hide resolved
src/Shared/Components/ComponentDescriptorSerializer.Deserialize.cs
Outdated
Show resolved
Hide resolved
src/Shared/Components/ComponentDescriptorSerializer.Deserialize.cs
Outdated
Show resolved
Hide resolved
src/Shared/Components/ComponentDescriptorSerializer.Deserialize.cs
Outdated
Show resolved
Hide resolved
src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.netcoreapp3.0.cs
Show resolved
Hide resolved
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.
I've given this a look, and I'm fairly happy with what I'm seeing in the product code.
I don't really get what's going on with some of these test changes, and I think it deserves more dicussion.
I also want to know if we can find a better way than relying on |
5ddcab7
to
96d4773
Compare
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.
We discussed offline about the test changes here, and why changing something is necessary. Basically since it's no longer possible to host server-side components in static HTML we haven't change how the server-side tests work.
@javiercn - has some ideas about what we should do here to try to and make this simpler in the future. Right now what's here isn't great - there are like 3 different strategies in use. He's going to follow up after we close down preview 9.
9d1227e
to
966435a
Compare
966435a
to
bea1dad
Compare
* Removes all overloads that register a component statically with aborts selector. * Updates render component to have a RenderMode parameter that indicates how the component must render. Valid values are Static, Server, and ServerPrerendered. * When using Server or ServerPrerendered we emit marker comments into the page that are later used by blazor.server.js to bootrstrap a blazor server-side application.
bea1dad
to
475e7e7
Compare
Fixes #12795