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

Add remarks on prerendering with interactive routing #31351

Closed
guardrex opened this issue Jan 4, 2024 · 0 comments · Fixed by #31353
Closed

Add remarks on prerendering with interactive routing #31351

guardrex opened this issue Jan 4, 2024 · 0 comments · Fixed by #31353

Comments

@guardrex
Copy link
Collaborator

guardrex commented Jan 4, 2024

Description

Per offline discussion with Mackinnon ... internal navigations are interactive with an interactive router and don't involve requesting new page content from the server. Therefore, prerendering doesn't occur.

Also ...

The current persistent component state feature only works on the initial page load. That is, if you perform a full (non-enhanced) navigation to a page utilizing persistent component state, the persisted state will be made available for the app to use when it becomes interactive, and things will work as expected. But if an interactive circuit has already been established and an enhanced navigation gets performed to a page that renders persisted component state, that state will not be made available in the existing circuit.

Goals ...

  • Add remarks on both behaviors.
  • Add remarks to prerendering examples that if using an interactive router to use a full page reload to see the demo behavior explained by the article.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/components/prerender?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/components/prerender.md

Document ID

ffdc8df3-55a8-b757-d4e6-38c104916002

Article author

@guardrex

@guardrex guardrex added Source - Docs.ms Docs Customer feedback via GitHub Issue ⌚ Not Triaged labels Jan 4, 2024
@github-project-automation github-project-automation bot moved this to Triage in Blazor.Docs Jan 4, 2024
@github-actions github-actions bot added the Blazor label Jan 4, 2024
@dotnet dotnet deleted a comment from github-actions bot Jan 4, 2024
@guardrex guardrex added Pri1 doc-enhancement 8.0 .NET 8 and removed Source - Docs.ms Docs Customer feedback via GitHub Issue labels Jan 4, 2024
@guardrex guardrex moved this from Triage to In progress in Blazor.Docs Jan 4, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in Blazor.Docs Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants