mobxjs / mobx-state-tree

Full-featured reactive state management without the boilerplate
https://mobx-state-tree.js.org/
MIT License
6.94k stars 641 forks source link

Is there a way to prevent exception throws? #1864

Closed ywcr closed 1 year ago

ywcr commented 2 years ago

First of all, I'm sorry that my English is not very good.

Our team wanted to catch error messages during MST usage and prevent error throws from affecting page usage.

Is there an API to support it?

Thanks a million!!

EmilTholin commented 2 years ago

Hi @ywcr!

Do you think you could include a small code sample showing where you would like to catch an error? It might be thrown for many different reasons with different strategies for catching them.

coolsoftwaretyler commented 1 year ago

Hey @ywcr - just following up on @EmilTholin's request. I'm going to mark this as needs more info for now, but since it's been a long time since this thread had activity, I'll close it out if I don't hear anything in the next two weeks or so.

If this is still an issue for you, please post some example code and I will be happy to help!

coolsoftwaretyler commented 1 year ago

Closin' it out. Thanks, all!