2
Answers

Issue Page loaded two time on blazor server side?

Photo of ahmed salah

ahmed salah

2y
770
1

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)