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
{{ message }}
Repository navigation
[PersistentState] not working when page is re-executed #64386
Reload home/counter/weather: Initial RendererInfo.Name:Static Current RendererInfo.Name:Server - All good
Hit "Not found test" (or try to open non existing page): Initial RendererInfo.Name:Server Current RendererInfo.Name:Server - InitialRenderMode not persist
Does this happen during re-execution when you type a not found page URL from the browser URL?
When I directly browse /not-found page - everything works fine. If I try to browse something like /asd (non existent page) then state not persisting in re-executed /not-found
So just to be double sure, when you type something like /asd which causes re-execution is where persistent component state doesn't seem to work. The navigating directly vs enhanced navigation delta is the thing we want to make sure we understand.
The state should only be skipped for the error handler, not when we are re-executing the page. Errors are always rendered statically, but the not found page can be interactive.
The state should only be skipped for the error handler, not when we are re-executing the page. Errors are always rendered statically, but the not found page can be interactive.
Note: this issue also prevents authentication state serialization/deserialization for re-executed page.
Activity
MihuBot commentedon Nov 16, 2025
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
Stuart88 commentedon Nov 17, 2025
It's probably the same as these
#64384
#63996
#63895
javiercn commentedon Nov 17, 2025
@AndreiGorlov thanks for contacting us.
Does this happen during re-execution when you type a not found page URL from the browser URL?
AndreiGorlov commentedon Nov 17, 2025
When I directly browse /not-found page - everything works fine. If I try to browse something like /asd (non existent page) then state not persisting in re-executed /not-found
javiercn commentedon Nov 17, 2025
@AndreiGorlov thanks for the additional details.
So just to be double sure, when you type something like
/asdwhich causes re-execution is where persistent component state doesn't seem to work. The navigating directly vs enhanced navigation delta is the thing we want to make sure we understand.AndreiGorlov commentedon Nov 17, 2025
Exactly.
javiercn commentedon Nov 17, 2025
@AndreiGorlov thanks for the additional details.
I suspect this issue is different from the other mentioned issues. We'll have a deeper look and provide an update in the future.
javiercn commentedon Nov 24, 2025
The issue is
aspnetcore/src/Components/Endpoints/src/RazorComponentEndpointInvoker.cs
Lines 177 to 181 in 0d10296
The state should only be skipped for the error handler, not when we are re-executing the page. Errors are always rendered statically, but the not found page can be interactive.
AndreiGorlov commentedon Dec 26, 2025
Note: this issue also prevents authentication state serialization/deserialization for re-executed page.
(https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-9.0?view=aspnetcore-10.0#simplified-authentication-state-serialization-for-blazor-web-apps)