Giter VIP home page Giter VIP logo

reactiveui.uno's Issues

[BUG] Uno.WinUI RxApp.MainThreadScheduler.Schedule not on main thread

Describe the bug
Using ReactiveUI.Uno.WinUI, my ViewModel throws RuntimeExceptions like 'The application called an interface that was marshalled for a different thread', despite using ObserveOn(RxApp.MainThreadScheduler).

Also code like RxApp.MainThreadScheduler.Schedule(() => IsBusy = false), the delegate is not executed on the main thread.

Steps To Reproduce

Small solution based on latest visual studio Uno template, Windows only.

UnoWinUI_ReactiveUI_MainThreadScheduler.zip

Provide the steps to reproduce the behaviour:

  1. type something in the search textbox.
  2. A TextBlock bounded to ViewModel.SearchResult ends in the error.
    โ€‹

Expected behaviour
I am expecting the viewmodel property SearchResult to be set on the main thread, so it does not throw the 'marshalled for a different thread' exception.

Environment

  • Windows: 11 Pro 22000.1042
  • ReactiveUI Version: 18.3.1
  • ReactiveUI.Uno.WinUI Version: 18.1.20

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/ci-build.yml
.github/workflows/lock.yml
  • dessant/lock-threads v5
.github/workflows/release.yml
nuget
src/Directory.build.props
  • Roslynator.Analyzers 4.12.2
  • stylecop.analyzers 1.2.0-beta.556
  • Nerdbank.GitVersioning 3.6.133
  • Microsoft.SourceLink.GitHub 8.0.0
  • Verify.Xunit 24.1.0
  • coverlet.msbuild 6.0.2
  • PublicApiGenerator 11.1.0
  • Microsoft.Reactive.Testing 6.0.0
  • FluentAssertions 6.12.0
  • Xunit.StaFact 1.1.11
  • xunit.runner.visualstudio 2.8.0
  • xunit.runner.console 2.8.0
  • xunit 2.8.0
  • Microsoft.NET.Test.Sdk 17.9.0
src/ReactiveUI.Uno.WinUI/ReactiveUI.Uno.WinUI.csproj
  • ReactiveUI 20.0.1
  • Uno.WinUI 5.2.108
  • Microsoft.WindowsAppSDK 1.5.240428000
  • Microsoft.Windows.SDK.BuildTools 10.0.22621.3233
src/ReactiveUI.Uno/ReactiveUI.Uno.csproj
  • ReactiveUI 20.0.1
  • Uno.UI 5.2.108
src/global.json
  • dotnet-sdk 8.0.204
  • MSBuild.Sdk.Extras 3.0.44

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.