Router.PreferExactMatches ends up limiting trimming unnecessarily #29913
Labels
affected-most
This issue impacts most of the customers
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
linker-friendliness
Tracking linker friendliness
severity-minor
This label is used by an internal tool
Milestone
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
The text was updated successfully, but these errors were encountered: