Update 'NavigationLock' description (#27447)

pull/27448/head
Mackinnon Buck 2022-10-31 16:51:16 -07:00 committed by GitHub
parent 1d33d057c8
commit fc8437e589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2037,7 +2037,7 @@ For additional example code, see the [`NavigationManagerComponent` in the `Basic
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
To facilitate the control of navigation events in a Razor component, use the `NavigationLock` component. As long as the `NavigationLock` component is rendered, it intercepts navigation events.
The `NavigationLock` component intercepts navigation events as long as it is rendered, effectively "locking" any given navigation until a decision is made to either proceed or cancel. Use `NavigationLock` when navigation interception can be scoped to the lifetime of a component.
`NavigationLock` parameters: