diff --git a/src/Components/Components/src/Routing/Router.cs b/src/Components/Components/src/Routing/Router.cs index d2dc133ff1ea..ff8cd2483161 100644 --- a/src/Components/Components/src/Routing/Router.cs +++ b/src/Components/Components/src/Routing/Router.cs @@ -23,8 +23,9 @@ namespace Microsoft.AspNetCore.Components.Routing public class Router : IComponent, IHandleAfterRender, IDisposable { static readonly char[] _queryOrHashStartChar = new[] { '?', '#' }; - static readonly ReadOnlyDictionary _emptyParametersDictionary - = new ReadOnlyDictionary(new Dictionary()); + // Dictionary is intentionally used instead of ReadOnlyDictionary to reduce Blazor size + static readonly IReadOnlyDictionary _emptyParametersDictionary + = new Dictionary(); RenderHandle _renderHandle; string _baseUri;