-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[Blazor] Add APIs for "enhanced refresh" #50068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I'm not familiar with the WebView bits but the changes there seem sensible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! One question about possible replacing the NotImplementedException
with a default implementation, but will leave it with you to conclude.
/backport to release/8.0-rc1 |
Started backporting to release/8.0-rc1: https://github.com/dotnet/aspnetcore/actions/runs/5883807131 |
Add APIs for "enhanced refresh"
Adds a new API to
NavigationManager
to refresh the current page using enhanced navigation if possible, otherwise falling back to a full page reload.Description
This PR adds
NavigationManager.Refresh(bool forceReload = false)
. The page gets refreshed using enhanced navigation, if it's enabled andforceReload
is false. Otherwise, a full page reload is performed.Fixes #49414