Skip to content

Blazor nested [SupplyParameterFromQuery] causes exception on navigation #64929

@ben-farrant

Description

@ben-farrant

There was an issue discovered in NET 8, but still exists in NET 10, despite it supposedly being fixed.

The original (incorrectly closed) issue:
#57746

The problem is with OnLocationChanged() in SupplyParameterFromQueryValueProvider. The list of subscribers can be updated in the middle of a foreach loop. A similar issue was fixed in CascadingValueSource.NotifyChangedAsync() released in NET 9, which is why some thought this issue was fixed.

private void OnLocationChanged(object? sender, LocationChangedEventArgs args)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions