Skip to content

Provide a valid RegisterPersistentService example #36174

@Markz878

Description

@Markz878

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions