We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Errors thrown from reactions and autoruns are both caught, onReactionError handler is called for both.
Errors thrown from reactions are not caught, onReactionError handler is not called.
https://codesandbox.io/s/xr2nzz41zq
mobx 4.1.0, mobx-react 5.0.0, react 16.0.0, react-dom 16.0.0
The text was updated successfully, but these errors were encountered:
Note it catches errors thrown in "tracking" part (first arg), but not in "effect" part (second arg). Dunno if it's intention or oversight.
Sorry, something went wrong.
8607ec3
Released a fix in 4.2.0
Thanks!
No branches or pull requests
Expected behavior
Errors thrown from reactions and autoruns are both caught, onReactionError handler is called for both.
Actual behavior
Errors thrown from reactions are not caught, onReactionError handler is not called.
Reproduction example
https://codesandbox.io/s/xr2nzz41zq
Steps to reproduce
Versions
mobx 4.1.0, mobx-react 5.0.0, react 16.0.0, react-dom 16.0.0
Template
The text was updated successfully, but these errors were encountered: