Skip to content

OnParametersSet called when navigating away from page #62882

@eric-gurney-omac

Description

@eric-gurney-omac

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When leaving a page, OnParametersSetAsync is called

Expected Behavior

When leaving a page, OnParametersSetAsync is not called

Steps To Reproduce

run the application. open dev tools to watch messages. Select a hospital from dropdown. Go to 'Hospital Ratios'; a message that OnParametersSet is correctly displayed for the hospitalratios page.

OnParametersSetAsync called for HospitalRatiosPage: https://localhost:7062/hospitalratios?HospitalCode=387&Year=2024

Click button to navigate back to hospitals page; OnParametersSetAsync is called for the HospitalRatios page, but the current uri is the Hospitals data page.
OnParametersSetAsync called for HospitalRatiosPage: https://localhost:7062/hospitals?HospitalCode=387&Year=2024

Exceptions (if any)

No response

.NET Version

9.0.7

Anything else?

ASP.NET Core Version: 9.0.7
No ide, using dotnet watch run
repo: https://github.com/eric-gurney-omac/BlazorIssue.git

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions