Skip to content

[BUG] RxApp.MainThreadScheduler wrong thread on Server-Side Blazor #2344

Open
@bergi9

Description

@bergi9

I tested DynamicData with Server-Side Blazor in combination with RxUI.
The first Exceptions (System.InvalidOperationException: Collection was modified) came when ReadOnlyObservableCollection<> are accessed in the Blazor's renderer while DD updates the collections (with i.e.: observableChangeSet.observeOn(RxApp.MainThreadScheduler).Bind(out list)...).
The RxApp.MainThreadScheduler obviously doesn't run on the same thread as Blazor's renderer.
After some searching I found that the Dispatcher class exist in Microsoft.AspNetCore.Components.Dispatcher that's may used for the Blazor's renderer.
An explicit scheduler implementation for server-side Blazor might missing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions