Skip to content

Commit 9e625bf

Browse files
authored
Merge pull request #34147 from dotnet/main
2 parents 23415e3 + 5a419e0 commit 9e625bf

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

aspnetcore/migration/60-70.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ To adopt all of the [new 7.0 features for Blazor apps](xref:aspnetcore-7#blazor)
8282
* Create a new 7.0 Blazor project from one of the Blazor project templates. For more information, see <xref:blazor/tooling>.
8383
* Move the app's components and code to the 7.0 app making modifications to adopt the new 7.0 features.
8484

85-
<!-- HOLD: See https://github.com/dotnet/AspNetCore.Docs/issues/27848
86-
8785
### Simplify component parameter binding
8886

8987
In prior Blazor releases, binding across multiple components required binding to properties with `get`/`set` accessors.
@@ -111,23 +109,11 @@ In .NET 7, you can use the new `@bind:get` and `@bind:set` modifiers to support
111109
@bind-GrandchildMessage:set="ChildMessageChanged" />
112110
```
113111

114-
> [!IMPORTANT]
115-
> The `@bind:get` and `@bind:set` features are receiving further updates at this time. To take advantage of the latest updates, confirm that you've installed the [latest SDK](https://dotnet.microsoft.com/download/dotnet/7.0).
116-
>
117-
> Using an event callback parameter (`[Parameter] public EventCallback<string> ValueChanged { get; set; }`) isn't supported. Instead, pass an <xref:System.Action>-returning or <xref:System.Threading.Tasks.Task>-returning method to `@bind:set`.
118-
>
119-
> For more information, see the following resources:
120-
>
121-
> * [Blazor `@bind:after` not working on .NET 7 RTM release (dotnet/aspnetcore #44957)](https://github.com/dotnet/aspnetcore/issues/44957)
122-
> * [`BindGetSetAfter701` sample app (javiercn/BindGetSetAfter701 GitHub repository)](https://github.com/javiercn/BindGetSetAfter701)
123-
124112
For more information, see the following content in the *Data binding* article:
125113

126114
* [Introduction](xref:blazor/components/data-binding?view=aspnetcore-7.0)
127115
* [Bind across more than two components](xref:blazor/components/data-binding?view=aspnetcore-7.0#bind-across-more-than-two-components)
128116

129-
-->
130-
131117
### Migrate unmarshalled JavaScript interop
132118

133119
Unmarshalled interop using the <xref:Microsoft.JSInterop.IJSUnmarshalledRuntime> interface is obsolete and should be replaced with JavaScript `[JSImport]`/`[JSExport]` interop.
@@ -138,7 +124,7 @@ For more information, see <xref:blazor/js-interop/import-export-interop>.
138124

139125
The support for authentication in Blazor WebAssembly apps changed to rely on [navigation history state](xref:blazor/fundamentals/routing?view=aspnetcore-7.0#navigation-history-state) instead of query strings in the URL. As a result, passing the return URL through the query string fails to redirect back to the original page after a successful login in .NET 7.
140126

141-
The following example demonstrates **the prior redirection approach for apps that target .NET 6 or earlier**, which is based on a redirect URL (`?returnUrl=`) with <xref:Microsoft.AspNetCore.Components.NavigationManager.NavigateTo%2A>:
127+
The following example demonstrates **the prior redirection approach for apps that target .NET 6 or earlier** in `RedirectToLogin.razor`, which is based on a redirect URL (`?returnUrl=`) with <xref:Microsoft.AspNetCore.Components.NavigationManager.NavigateTo%2A>:
142128

143129
```razor
144130
@inject NavigationManager Navigation
@@ -152,7 +138,7 @@ The following example demonstrates **the prior redirection approach for apps tha
152138
}
153139
```
154140

155-
The following example demonstrates **the new redirection approach for apps that target .NET 7 or later**, which is based on [navigation history state](xref:blazor/fundamentals/routing?view=aspnetcore-7.0#navigation-history-state) with <xref:Microsoft.AspNetCore.Components.WebAssembly.Authentication.NavigationManagerExtensions.NavigateToLogin%2A>:
141+
The following example demonstrates **the new redirection approach for apps that target .NET 7 or later** in `RedirectToLogin.razor`, which is based on [navigation history state](xref:blazor/fundamentals/routing?view=aspnetcore-7.0#navigation-history-state) with <xref:Microsoft.AspNetCore.Components.WebAssembly.Authentication.NavigationManagerExtensions.NavigateToLogin%2A>:
156142

157143
```razor
158144
@inject NavigationManager Navigation
@@ -186,7 +172,7 @@ The following example demonstrates **the prior approach** in `Shared/LoginDispla
186172
}
187173
```
188174

189-
The following example demonstrates **the new approach** that calls <xref:Microsoft.AspNetCore.Components.WebAssembly.Authentication.NavigationManagerExtensions.NavigateToLogout%2A>. The injection (`@inject`) of the <xref:Microsoft.AspNetCore.Components.WebAssembly.Authentication.SignOutSessionStateManager> is removed from the component's directives at the top of the file, and the `BeginLogOut` method is updated to the following code:
175+
The following example demonstrates **the new approach** in `Shared/LoginDisplay.razor` that calls <xref:Microsoft.AspNetCore.Components.WebAssembly.Authentication.NavigationManagerExtensions.NavigateToLogout%2A>. The injection (`@inject`) of the <xref:Microsoft.AspNetCore.Components.WebAssembly.Authentication.SignOutSessionStateManager> is removed from the component's directives at the top of the file, and the `BeginLogOut` method is updated to the following code:
190176

191177
```razor
192178
@code{

0 commit comments

Comments
 (0)