Open yoshuawuyts opened 7 years ago
How does this work? Wrap stuff in try catch?
I like the idea though.
Wrap stuff in try catch
yeah, pretty much haha
I saw this on twétèr and thought the idea was interesting too. Would this be something baked in to nanocomponent or could it be maintained as a standalone module?
Think having it be part of NC would be good - isolates a class of errors / unlike servers you'll most likely never want a full page to crash
On Mon, Aug 7, 2017, 19:33 Nate Goldman notifications@github.com wrote:
I saw this on twétèr and thought the idea was interesting too. Would this be something baked in to nanocomponent or could it be maintained as a standalone module?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/choojs/nanocomponent/issues/43#issuecomment-320728704, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWlejQZJMKloyjeZlNo6AAm8tGooAhzks5sV0pRgaJpZM4OvmfY .
In React 16 components introduce something new called error boundries. The main idea is that if an error is thrown from a component, it can be caught early, and prevents crashing the whole web page.
I find this interesting because:
component.use
(or similar); can send through the error to a local dev logger, or monitoring solutionThoughts?