Skip to content

Commit 1d84171

Browse files
authored
Drop [Parameter] for query string params (#31569)
1 parent 35d73a2 commit 1d84171

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

aspnetcore/migration/70-80.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ The following migration scenarios are covered:
9090
* [*New article*: HTTP caching issues during migration](#new-article-on-http-caching-issues)
9191
* [*New article*: New article on class libraries with static server-side rendering (static SSR)](#new-article-on-class-libraries-with-static-server-side-rendering-static-ssr)
9292
* [Discover components from additional assemblies](#discover-components-from-additional-assemblies)
93+
* [Drop `[Parameter]` attribute when the parameter is supplied from a query string](#drop-parameter-attribute-when-the-parameter-is-supplied-from-a-query-string)
9394

9495
For guidance on adding Blazor support to an ASP.NET Core app, see <xref:blazor/components/integration#add-blazor-support-to-an-aspnet-core-app>.
9596

@@ -523,6 +524,15 @@ For more information, see <xref:blazor/components/class-libraries-with-static-ss
523524

524525
When migrating from a Blazor Server app to a Blazor Web App, access the guidance in <xref:blazor/fundamentals/routing#route-to-components-from-multiple-assemblies> if the app uses routable components from additional assemblies, such as component class libraries.
525526

527+
### Drop `[Parameter]` attribute when the parameter is supplied from a query string
528+
529+
The `[Parameter]` attribute is no longer required when supplying a parameter from the query string:
530+
531+
```diff
532+
- [Parameter]
533+
[SupplyParameterFromQuery]
534+
```
535+
526536
## Docker
527537

528538
### Update Docker images

aspnetcore/release-notes/aspnetcore-8.0.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,15 @@ The following articles document changes for Blazor Hybrid in .NET 8:
329329
* <xref:blazor/hybrid/index?view=aspnetcore-8.0&preserve-view=true#access-scoped-services-from-native-ui>: `BlazorWebView` gains a `TryDispatchAsync` method that calls a specified `Action<ServiceProvider>` asynchronously and passes in the scoped services available in Razor components. This enables code from the native UI to access scoped services such as `NavigationManager`.
330330
* <xref:blazor/hybrid/routing?view=aspnetcore-8.0&preserve-view=true&pivots=maui#get-or-set-a-path-for-initial-navigation>: Use the `BlazorWebView.StartPath` property to get or set the path for initial navigation within the Blazor navigation context when the Razor component is finished loading.
331331

332+
### `[Parameter]` attribute is no longer required when supplied from the query string
333+
334+
The `[Parameter]` attribute is no longer required when supplying a parameter from the query string:
335+
336+
```diff
337+
- [Parameter]
338+
[SupplyParameterFromQuery]
339+
```
340+
332341
## SignalR
333342

334343
### New approach to set the server timeout and Keep-Alive interval

0 commit comments

Comments
 (0)