pticostaricags / FairPlaySocial

Multi-platform social network system
GNU General Public License v3.0
21 stars 7 forks source link

Optimize Web App Pre-Rendering #154

Closed efonsecab closed 1 year ago

efonsecab commented 1 year ago

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.