Unexpected Behavior of LoadData in DataGrid

Hi,
I am using LoadData in my Radzen DataGrid.
On load when OnInitializedAsync is called, it has various functions as follows:

protected override async Task OnInitializedAsync()
{
spinnerService.Show();
await function1();
await function2();
await function3();
spinnerService.Hide();
}

So, let's say when function1() is called, it has an API call. When the function executes and reaches the service (HTTP Context building), it immediately calls function inside my LoadData property, which loads data improperly because OnInitializedAsync wasn't yet completed to provide LoadData function with all necessary elements.

Why it's happening? Why Initialized isn't completely executed and LoadData is called?

Maybe you should check this demo for reference on how to use LoadData with your API: