In this article there is a short description of the RegisterPersistentService function:
https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management/prerendered-state-persistence?view=aspnetcore-10.0#interactive-routing-and-prerendering
Could you please add a valid use case in the docs for this, I have no idea where and how this would be used in an actual app instead of the [PersistentState] attribute. The given example does not give any indication where the CounterService is initialized and consumed and what is the use case for this.