Skip to content
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

Aynchronous reactive commands on Avalonia.iOS never complete #13594

Closed
kyurkchyan opened this issue Nov 13, 2023 · 2 comments · Fixed by #13942
Closed

Aynchronous reactive commands on Avalonia.iOS never complete #13594

kyurkchyan opened this issue Nov 13, 2023 · 2 comments · Fixed by #13942

Comments

@kyurkchyan
Copy link

Describe the bug

I have a straightforward scenario - a reactive command in the view model that invokes an awaitable async task. For the demo purposes, it's just Task.Delay(2000). The problem is that on iOS, when the command execution starts, it never completes. Please take a look at the demo project I've attached.

The command works as expected when launching the desktop version of the sample. In the demo project, I also have a Maui.iOS app that re-uses the same view model with the same set of bindings, and the reactive command works as expected there.

To Reproduce

  1. Download the sample project
  2. Launch the AvaloniaReactiveUIAsyncCommand.iOS on iOS Simulator
  3. Press the "Load" button
  4. Observe that the Load command is busy stays to value of "true" and the "Load" button is never reactivated.

Expected behavior

After the load command completes its execution, the load command should be reactivated and its IsExecuting property should be set back to true

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • OS: Mac
  • Avalonia-Version: 11.1.999-cibuild0041899-beta
@kyurkchyan kyurkchyan added the bug label Nov 13, 2023
@brah2008

This comment was marked as spam.

@jhimes144
Copy link

The above comment is a low quality ChatGPT generated response and it should be removed and discouraged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants