Skip to content

The current thread is not associated with the Dispatcher. Use InvokeAsync() to switch execution to the Dispatcher when triggering rendering or component state. #535

@drma-tech

Description

@drma-tech
var cut = ctx.RenderComponent<VariableList>();
await cut.Instance.OpenDialog();
public async Task OpenDialog()
{
    IsOpen = true;
    StateHasChanged();
    await LoadData();
}

this error occurs when executing the line: StateHasChanged.
is it possible to run a test with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions