Exception raised in an async command handler method disables the command though the exception is handled #164
Labels
bug 🐛
An unexpected issue that highlights incorrect behavior
fixed in main 🏎️
An issue/feature that has already been fixed/added in main
mvvm-toolkit 🧰
Issues/PRs for the MVVM Toolkit
Projects
Describe the bug
Using v8.0.0-preview2 MVVM Toolkit NuGet package.
Exception raised in an async command handler method disables the command though the exception is handled.
Have a look at the below code snippet:
The developer is certain about the possibility of an exception, so a try ... catch block is introduced to handle the exception. In this case, the exception is handled, the command should not move into the disabled state and should continue to work as before.
Regression
NA
Steps to reproduce
Expected behavior
Since the exception is handled by the developer code, the command should not move into the disabled state and continue to work as before.
Screenshots
NA
IDE and version
VS 2022 Preview
IDE version
17.2.0 Preview 2.0
Nuget packages
Additional context
NA
Help us help you
Yes, but only if others can assist
The text was updated successfully, but these errors were encountered: