Skip to content

Remove AccountLayout.razor from project template#55294

Merged
halter73 merged 1 commit intomainfrom
halter73/remove-account-layout
Apr 24, 2024
Merged

Remove AccountLayout.razor from project template#55294
halter73 merged 1 commit intomainfrom
halter73/remove-account-layout

Conversation

@halter73
Copy link
Copy Markdown
Member

After #55157, the AccountLayout from the Blazor Web project template should no longer be necessary. It didn't add any UI. Instead, it just checked if the component was rendering in interactive mode, and if so, called NavigationManager.Refresh(forceReload: true) and showed <p>Loading...</p> in the meantime.

The ManageLayout.razor which renders an account management submenu remains.

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Apr 22, 2024
Copy link
Copy Markdown
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.

The change looks very neat.

I can't predict just by reading it whether it still works correctly (since auth may have other special requirements) but assuming it does, great!

@halter73 halter73 merged commit 9755a3a into main Apr 24, 2024
@halter73 halter73 deleted the halter73/remove-account-layout branch April 24, 2024 00:00
@dotnet-policy-service dotnet-policy-service Bot added this to the 9.0-preview5 milestone Apr 24, 2024
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.

2 participants