You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that when navigating inside a Blazor 8 Web App, components using @rendermode InteractiveAuto are rendered once on the server during pre-rendering at which point I store the state in PersistentComponentState. When the component is rendered the second time on the client, the state is not available forcing the client to load the data a second time using a http request. Is this working as intended? Sounds like a waste of computation resources.
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.100-rc.2.23502.2
Anything else?
No response
The text was updated successfully, but these errors were encountered:
The current mechanism for persistent component state only allows reading persisted state after the initial page load. This currently excludes enhanced navigations, but we have #51584 to track having better support for the enhanced navigation scenario.
I'm going to close this out as a duplicate of the existing issue. Thanks again 🙂
@MackinnonBuck@danroth27: Really worrying that people who are stuck on LTS releases will have to deal with this performance issue for 2 years if this is not fixed.
ghost
locked as resolved and limited conversation to collaborators
Nov 25, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Describe the bug
I have noticed that when navigating inside a Blazor 8 Web App, components using
@rendermode InteractiveAuto
are rendered once on the server during pre-rendering at which point I store the state inPersistentComponentState
. When the component is rendered the second time on the client, the state is not available forcing the client to load the data a second time using a http request. Is this working as intended? Sounds like a waste of computation resources.Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.100-rc.2.23502.2
Anything else?
No response
The text was updated successfully, but these errors were encountered: