Skip to content

Blazor: Control how StateHasChanged batches updates to client #17795

@ghost

Description

Blazor server side - .NET Core 3.1

I am receiving information in a background thread (socket), and am rendering the information through a Blazor component. As the frequency of information from the background thread increases, and I issue StateHasChanged in my component to reflect the new state on the screen, the results are very "janky". From a high-level, it really just seems like the Blazor internals is buffering a number of states before they get set out to the client.

Is there any way to force the Blazor/SignalR pipeline to force an update to the client, to avoid what appears to be batching?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions