-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Router.PreferExactMatches ends up limiting trimming unnecessarily #29913
Copy link
Copy link
Closed
Labels
affected-mostThis issue impacts most of the customersThis issue impacts most of the customersarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.linker-friendlinessTracking linker friendlinessTracking linker friendlinessseverity-minorThis label is used by an internal toolThis label is used by an internal tool
Milestone
Metadata
Metadata
Assignees
Labels
affected-mostThis issue impacts most of the customersThis issue impacts most of the customersarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.linker-friendlinessTracking linker friendlinessTracking linker friendlinessseverity-minorThis label is used by an internal toolThis label is used by an internal tool
Type
Fields
Give feedbackNo fields configured for issues without a type.
Router.PreferExactMatches has this comment on it:
aspnetcore/src/Components/Components/src/Routing/Router.cs
Lines 85 to 87 in dfe625f
As of now, though, the option is still available and still false by default. The net effect is the "LegacyRoute" support constructed here:
aspnetcore/src/Components/Components/src/Routing/Router.cs
Lines 159 to 161 in dfe625f
ends of referencing and preventing a bunch of APIs that could otherwise by trimmed by the linker from getting trimmed in a default Blazor wasm app.
cc: @eerhardt, @javiercn