Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In Blazor Server Prerendered, the ideal location for data loading and UI updates is in the OnInitializedAsync() method of the component. This method is called once for each component when it is initialized and is the recommended location for any data loading or initialization code. The OnInitializedAsync() method can also make use of the StateHasChanged() method to trigger UI updates when data has been loaded or updated.