-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
The exception does not work within the reaction #853
Comments
@kirill09
mobx.dart/mobx/lib/src/core/reaction.dart Line 172 in cea7013
https://mobx.js.org/configuration.html#disableerrorboundaries-boolean
mobx.dart/mobx/test/reaction_test.dart Line 222 in cea7013
I think mobx should not throw exception in reaction. Even if it is an async action, mobx should not throw an exception. And if you need error handling, you can use reaction((_) => name, validateUsername, onError: (e, r) {
error = e;
print('error');
}),
|
Hi. Found an interesting bug. If method which processes reaction is not async then exception is not displayed in console and Guarded doesn't work.
I did not find any mention of this feature in the documentation. Why does this happen and is this a bug or normal? I think this should be described in the documentation
The text was updated successfully, but these errors were encountered: