DataGrid issue in client side pre-rendering

It gives the below error in the case of pre-rendering in the client-side blazor application.

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

<RadzenGrid AllowFiltering="false" AllowPaging="true" PageSize="getUserInput.MaxResultCount" AllowSorting="false" Data="@users.Items" TItem="UserDto" Count="users.TotalCount" LoadData="LoadData">
    <Columns>
        <RadzenGridColumn TItem="UserDto" Property="Name" Title="Name" />
        <RadzenGridColumn TItem="UserDto" Property="Email" Title="Email" />
        <RadzenGridColumn TItem="UserDto" Title="Role">
            <Template Context="data">
                @foreach (var role in data.UserRoles)
                {
                    <span>@role.Role.Name  </span>
                    <br />
                }
            </Template>
        </RadzenGridColumn>
    </Columns>
</RadzenGrid>

@code
{
    GetUserInput getUserInput = new GetUserInput();
    PagedResultDto<UserDto> users = new PagedResultDto<UserDto>();
    async Task GeUsers()
    {
        users = await UserService.GetAsync(getUserInput);
        StateHasChanged();
    }

    async Task LoadData(LoadDataArgs loadData)
    {
        getUserInput.SkipCount = loadData.Skip ?? 0;
        await GeUsers();
    }
}

Try await Invoke(() => { StateHasChanged(); }); instead StateHasChanged(); in GeUsers()

The latest Radzen.Blazor (0.0.57) should work normally!

fixed in

Radzen.Blazor (0.0.57)

Thank you!