Hi, I am getting this error.
System.InvalidOperationException: 'The current thread is not associated with the renderer's synchronization context. Use Invoke() or InvokeAsync() to switch execution to the renderer's synchronization context when triggering rendering or modifying any state accessed during rendering.
Bug found.
public async void Reload()
{
await Task.Run(() => LoadData.InvokeAsync(new LoadDataArgs
{
Skip = skip,
Top = PageSize,
OrderBy = orderBy,
Filter = oDataWhere
}));
if (!LoadData.get_HasDelegate())
{
await this.Invoke((Action)delegate
{
this.StateHasChanged();
});
}
}