-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
If I navigate from a SSR page with enhanced navigation to a WASM page (@rendermode InteractiveWebAssembly at the top), the PersistentState feature doesn't work.
There is a mention of this in the docs (although it's not clear whether this is an interactive routing)
"If the app adopts interactive routing and the page is reached via an internal enhanced navigation, prerendering doesn't occur. Therefore, you must perform a full page reload for the component to see the following output."
But there is also this in the docs:
"Blazor supports handling persistent component state during enhanced navigation. State persisted during enhanced navigation can be read by interactive components on the page."
So is it so that the PersistentState feature is intentionally not meant to work in this situation, and that all pages should be SSR rendered with only Components marked with @rendermode="InteractiveWebAssembly"?
If yes, could this be mentioned in the docs? And is this feature possible to implement in the future?
Describe the solution you'd like
I would like PersistentState to work between enhanced navigation SSR and WASM pages.
Additional context
I can provide a repro if needed.