Closed alexnault closed 6 years ago
This was caused by React 16's new error handling behavior:
As of React 16, errors that were not caught by any error boundary will result in unmounting of the whole React component tree.
So, error boundaries must be defined to prevent the whole React tree from breaking.
Hi Alex
Thanks for reporting back!
Best Gadi
On Mon, Dec 4, 2017 at 10:44 PM, Alex Nault notifications@github.com wrote:
This was caused by React 16's new error handling behavior https://reactjs.org/docs/error-boundaries.html#new-behavior-for-uncaught-errors :
As of React 16, errors that were not caught by any error boundary will result in unmounting of the whole React component tree.
So, error boundaries must be defined to prevent the whole React tree from breaking.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gadicc/meteor-blaze-react-component/issues/12#issuecomment-349099310, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXUGnszhP6nA7XgZuAq59W_doa7xa-fks5s9FmzgaJpZM4Qy80S .
--
Gadi Cohen aka Kinslayer dragon@wastelands.net www.wastelands.net Freelance admin/coding/design HABONIM DROR linux/fantasy enthusiast KeyID 0x93F26EF5: 256A 1FC7 AA2B 6A8F 1D9B 6A5A 4403 F34B 93F2 6EF5
I guess we could also introduce our own error boundary for Blaze components... that could be a nice feature. Unfortunately I'm very short on time these days but would happily accept a PR to this end from anyone interested on working on it.
On Tue, Dec 5, 2017 at 8:09 PM, Gadi Cohen dragon@wastelands.net wrote:
Hi Alex
Thanks for reporting back!
Best Gadi
On Mon, Dec 4, 2017 at 10:44 PM, Alex Nault notifications@github.com wrote:
This was caused by React 16's new error handling behavior https://reactjs.org/docs/error-boundaries.html#new-behavior-for-uncaught-errors :
As of React 16, errors that were not caught by any error boundary will result in unmounting of the whole React component tree.
So, error boundaries must be defined to prevent the whole React tree from breaking.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gadicc/meteor-blaze-react-component/issues/12#issuecomment-349099310, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXUGnszhP6nA7XgZuAq59W_doa7xa-fks5s9FmzgaJpZM4Qy80S .
--
Gadi Cohen aka Kinslayer dragon@wastelands.net www.wastelands.net Freelance admin/coding/design HABONIM DROR linux/fantasy enthusiast KeyID 0x93F26EF5: 256A 1FC7 AA2B 6A8F 1D9B 6A5A 4403 F34B 93F2 6EF5
--
Gadi Cohen aka Kinslayer dragon@wastelands.net www.wastelands.net Freelance admin/coding/design HABONIM DROR linux/fantasy enthusiast KeyID 0x93F26EF5: 256A 1FC7 AA2B 6A8F 1D9B 6A5A 4403 F34B 93F2 6EF5
Since React 16, any error thrown inside the
onCreated
callback of a template wrapped byBlazeComponent
will crash an entire application:How to reproduce:
Maybe the package is not compatible with some of the React 16 breaking changes? Or maybe all we need is to add an error boundary over
BlazeComponent
?