Skip to content
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

Ability to programmatically perform an "enhanced page refresh" #49414

Closed
MackinnonBuck opened this issue Jul 14, 2023 · 2 comments · Fixed by #50068
Closed

Ability to programmatically perform an "enhanced page refresh" #49414

MackinnonBuck opened this issue Jul 14, 2023 · 2 comments · Fixed by #50068
Assignees
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-full-stack-web-ui Full stack web UI with Blazor
Milestone

Comments

@MackinnonBuck
Copy link
Member

Details to be added later

@MackinnonBuck MackinnonBuck added enhancement This issue represents an ask for new feature or an enhancement to an existing one area-blazor Includes: Blazor, Razor Components feature-full-stack-web-ui Full stack web UI with Blazor labels Jul 14, 2023
@MackinnonBuck MackinnonBuck added this to the 8.0-rc1 milestone Jul 14, 2023
@MackinnonBuck MackinnonBuck self-assigned this Jul 14, 2023
@SteveSandersonMS
Copy link
Member

SteveSandersonMS commented Jul 14, 2023

We need to consider:

  • Some extra NavigationOptions flag to navigationManager.NavigateTo that means "do a full page load to the target URL but using progressively-enhanced nav, even if the URL would be matched by the interactive router"
  • Doing a "refresh" on the current location (arguably just a special case of the one above)

@MackinnonBuck
Copy link
Member Author

MackinnonBuck commented Aug 10, 2023

We should decide whether we need to introduce new APIs for this. #49768 makes it possible to do this by calling:

NavigationManager.NavigateTo(NavigationManager.Uri, replace: true);

However, there still might be reasons why we need a new API:

  • Simplify the line above to something less verbose, like NavigationManager.EnhancedRefresh()
  • Trigger an enhanced page refresh even if an interactive router is present

Maybe we could add a new flag to NavigationOptions like ForceEnhancedNavigation? That will force an enhanced navigation to occur even if an interactive router is present.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-full-stack-web-ui Full stack web UI with Blazor
Projects
None yet
3 participants
@SteveSandersonMS @MackinnonBuck and others