Created
August 26, 2025 12:24
-
-
Save spinningcat/aa2d5634bb39794501e40800eb086b63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <CascadingAuthenticationState> | |
| <Router AppAssembly="@typeof(App).Assembly"> | |
| <Found Context="routeData"> | |
| <CascadingValue Value="routeData"> | |
| <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> | |
| <FocusOnNavigate RouteData="@routeData" Selector="h1" /> | |
| </CascadingValue> | |
| </Found> | |
| <NotFound> | |
| <PageTitle>Not found</PageTitle> | |
| <LayoutView Layout="@typeof(MainLayout)"> | |
| <p role="alert">Sorry, there's nothing at this address.</p> | |
| </LayoutView> | |
| </NotFound> | |
| </Router> | |
| </CascadingAuthenticationState> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment