-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] When binding received parameter in ContentPage from INavigable ViewModel exception is thrown that cannot access UI control from another thread #136
Comments
Hey @xplatsolutions 👋, Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider contributing financially. https://opencollective.com/reactiveui
|
I couldn't reproduce the exact same issue as is described here, it doesn't crash with the version 2.2.1. For the test I used Forms 4.4, RxUI 11. Tried the latest Sextant 2.4.1 as well, doesn't crash either. However, there are a few remarks:
|
@winterdouglas It should execute on the main thread, or whatever thread the View believes is the main thread. Although looking at it now and remembering an issue I had a few weeks ago, this is most likely not happening on the main thread. Sextant/src/Sextant/Navigation/ParameterViewStackService.cs Lines 54 to 65 in b4fda78
|
i reproduce the same issue on: |
This is reproducible from Sample project, in Android but I was able to make it happen in iOS as well.
If you use Xamarin XAML Binding it work properly.
Text="{Binding ReceivedParameter}"
Expected behavior
Expected to update the label with no error and show the received parameter value.
Environment
Exception Stacktrace.
The text was updated successfully, but these errors were encountered: