You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you think about possible fallback for component?
E.g. We have 10 components and would like to handle their errors, but not in the same way
(for error in component 1 show notification, for component 2 - red box etc)
So with current interface I don't see the way to make it possible
reactGuard(React, function (err, componentInfo) {
return <div>Failed to render</div>
})
Possible solutions are:
pass the class itself as a part of componentInfo (with static method that implements fallback)
pass the class itself as a third parameter
@kossnocorp what do you think? maybe you have better idea?
The text was updated successfully, but these errors were encountered:
What do you think about possible fallback for component?
E.g. We have 10 components and would like to handle their errors, but not in the same way
(for error in component 1 show notification, for component 2 - red box etc)
So with current interface I don't see the way to make it possible
Possible solutions are:
@kossnocorp what do you think? maybe you have better idea?
The text was updated successfully, but these errors were encountered: