Skip to content

Add an analyzer to warn about code that runs after calling NavigationManager.NavigateTo in server side contexts #69195

Description

@javiercn

We used to throw a navigation exception and that would stop the execution. this was unique on an SSR context and we switched to just signal the navigation and stop the rendering after the current render batch.

As a result, code that was after the NavigateTo instruction wouldn't run, and now it does, and apps need to be aware of that.

Connected report: dotnet/AspNetCore.Docs#37581

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerIndicates an issue which is related to analyzer experiencearea-blazorIncludes: Blazor, Razor Components

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions