Here is what I've been doing in my Blazor server application -- pretty much every page needs to load some content by calling an API. I've been adding this async function inside the OnInitializedAsync() method.
However, recently, I've been reading articles that this is not the right place to do. It should've been done in the OnAfterRenderAsync() event. Here is an article talking about it towards the bottom: SpinKit Loading
I would like to know have I been doing it wrong? If so, why? Are any initial page data fetch should all be done in OnAfterRenderAsync()?
Thanks!