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

Should be able to specify reaction onError at initialization #1301

Closed
adamabeshouse opened this issue Jan 9, 2018 · 3 comments
Closed

Should be able to specify reaction onError at initialization #1301

adamabeshouse opened this issue Jan 9, 2018 · 3 comments

Comments

@adamabeshouse
Copy link

It's not possible to add a custom error handler to an autorun in a way that handles if the error is thrown on initialization and first run.

https://jsfiddle.net/akz7rz1p/1/

A fix would be to be able to specify the error handler at initialization of the reaction.

@mweststrate
Copy link
Member

Love the idea. Will consider adding it to the next major, where autorun etc will receive a map with options

@adamabeshouse
Copy link
Author

awesome, thanks!

@mweststrate mweststrate mentioned this issue Feb 27, 2018
38 tasks
@mweststrate
Copy link
Member

Closing as this will be added to mobx4

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

No branches or pull requests

2 participants