We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6c84e commit 70d9e74Copy full SHA for 70d9e74
aspnetcore/blazor/state-management/prerendered-state-persistence.md
@@ -168,8 +168,8 @@ public class CounterService
168
In `Program.cs`:
169
170
```csharp
171
-builder.Services.RegisterPersistentService<CounterService>(
172
- RenderMode.InteractiveAuto);
+builder.Services.AddRazorComponents()
+ .RegisterPersistentService<CounterService>(RenderMode.InteractiveAuto);
173
```
174
175
Serialized properties are identified from the actual service instance:
0 commit comments