ahmed salah

ahmed salah

  • 1.2k
  • 547
  • 64.5k

Issue Page loaded two time on blazor server side?

Apr 29 2023 2:47 PM

I work on blazor server side . I face Issue page reload after open and reload automatically

so page loaded two times Why flicker happen on loaded page

and How to solve this issue

this not happen on one page this is happen on all application pages

sample code for page Dashboard happen this issue on it

protected override async Task OnInitializedAsync()
{
    await getcountServers();
    await getcountDatabases();
    await RefreshDropDownListFilter();
    
    await RefreshDropDownListOwnerFilter();
    await RefreshDropDownListDatabaseFilter();
    await SearchFilter();
    await GetFirstCharachter();      
}


protected override async Task OnAfterRenderAsync(bool firstRender)
{
    
    if (firstRender)
    {
        
    }

}

 


Answers (2)