In order to improve the app for Search Engine Optimization, Blazor WebAssembly Pre-Rendering was introduced.
The result of this is that the OnInitialized methods are called twice.
Modify the Index page so that the code the page initialization logic is moved to the OnAfterRenderAsync method, and execute only on FirstRender.
In order to improve the app for Search Engine Optimization, Blazor WebAssembly Pre-Rendering was introduced. The result of this is that the OnInitialized methods are called twice. Modify the Index page so that the code the page initialization logic is moved to the OnAfterRenderAsync method, and execute only on FirstRender.