Skip to content

Support null @rendermode #9343

Open
@halter73

Description

          > It looks we might need to change the runtime to provide a way to set the render mode to static server rendering.

Yes, I think you're right, and this is going to affect dotnet/aspnetcore#50920 (Auth with global interactivity) because it's exactly how we're most likely going to do it. cc @halter73

The reason it worked in my PR is probably that it didn't yet have the Razor compiler changes for @rendermode and hence was behaving as a regular attribute that gets elided if you pass null. We can change AddComponentRenderMode in the runtime to treat null as a no-op.

Originally posted by @SteveSandersonMS in dotnet/aspnetcore#51031 (comment)

Metadata

Assignees

Labels

area-compilerUmbrella for all compiler issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions