Skip to content

Commit b89bb1c

Browse files
committed
Updates
1 parent f845d63 commit b89bb1c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

aspnetcore/blazor/components/integration-hosted-webassembly.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,6 @@ The persisted prerendered state is transferred to the client, where it's used to
10641064

10651065
## Additional Blazor WebAssembly resources
10661066

1067-
* [State management: Browser storage: Handle prerendering](xref:blazor/state-management/browser-storage#handle-prerendering)
10681067
* [Prerendering support with assembly lazy loading](xref:blazor/webassembly-lazy-load-assemblies#lazy-load-assemblies-in-a-hosted-blazor-webassembly-solution)
10691068
* Razor component lifecycle subjects that pertain to prerendering
10701069
* [Component initialization (`OnInitialized{Async}`)](xref:blazor/components/lifecycle#component-initialization-oninitializedasync)

aspnetcore/blazor/state-management/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Root-level cascading values with a <xref:Microsoft.AspNetCore.Components.Cascadi
157157

158158
:::moniker-end
159159

160-
## Troubleshoot
160+
## Support state modifications from outside Blazor's synchronization context
161161

162162
When using a custom state management service where you want to support state modifications from outside Blazor's synchronization context (for example from a timer or a background service), all consuming components must wrap the <xref:Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged%2A> call in <xref:Microsoft.AspNetCore.Components.ComponentBase.InvokeAsync%2A?displayProperty=nameWithType>. This ensures the change notification is handled on the renderer's synchronization context.
163163

0 commit comments

Comments
 (0)