Skip to content

Commit 0236e1e

Browse files
CR: Rename PageParameters->RouteValues
1 parent dca1b78 commit 0236e1e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Components/Components/src/RouteView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void RenderPageWithParameters(RenderTreeBuilder builder)
7979
{
8080
builder.OpenComponent(0, RouteData.PageType);
8181

82-
foreach (var kvp in RouteData.PageParameters)
82+
foreach (var kvp in RouteData.RouteValues)
8383
{
8484
builder.AddAttribute(1, kvp.Key, kvp.Value);
8585
}

src/Components/Components/src/Routing/RouteData.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public sealed class RouteData
1616
/// Constructs an instance of <see cref="RouteData"/>.
1717
/// </summary>
1818
/// <param name="pageType">The type of the page matching the route, which must implement <see cref="IComponent"/>.</param>
19-
/// <param name="pageParameters">The parameters for the page component matching the route.</param>
20-
public RouteData(Type pageType, IReadOnlyDictionary<string, object> pageParameters)
19+
/// <param name="routeValues">The route parameter values extracted from the matched route.</param>
20+
public RouteData(Type pageType, IReadOnlyDictionary<string, object> routeValues)
2121
{
2222
if (pageType == null)
2323
{
@@ -30,7 +30,7 @@ public RouteData(Type pageType, IReadOnlyDictionary<string, object> pageParamete
3030
}
3131

3232
PageType = pageType;
33-
PageParameters = pageParameters ?? throw new ArgumentNullException(nameof(pageParameters));
33+
RouteValues = routeValues ?? throw new ArgumentNullException(nameof(routeValues));
3434
}
3535

3636
/// <summary>
@@ -39,8 +39,8 @@ public RouteData(Type pageType, IReadOnlyDictionary<string, object> pageParamete
3939
public Type PageType { get; }
4040

4141
/// <summary>
42-
/// Gets the parameters for the page component matching the route.
42+
/// Gets route parameter values extracted from the matched route.
4343
/// </summary>
44-
public IReadOnlyDictionary<string, object> PageParameters { get; }
44+
public IReadOnlyDictionary<string, object> RouteValues { get; }
4545
}
4646
}

0 commit comments

Comments
 (0)