doochik / babel-plugin-transform-react-ssr-try-catch

Wraps render() method in React.Component with try-catch statement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Just apply into one specific component

dwicao opened this issue · comments

First of all, thank you so much for creating this awesome package.
But I think the abstraction is not good enough.
Cuz basically it'll apply the try-catch into all of our components.

So I came up with different approach that only applied into one specific component that has
ERRORBOUNDARY_render() method.

I've already implemented that in https://github.com/dwicao/babel-plugin-transform-react-ssr-try-catch

Sorry I'm not going to create a PR cuz this is of course a breaking changes.

Thanks!
I try to merge you idea and make is optional without breaking change