preact-render-to-string icon indicating copy to clipboard operation
preact-render-to-string copied to clipboard

Support `componentDidCatch(error)`

Open johnhaitas opened this issue 5 years ago • 0 comments

https://github.com/developit/preact/pull/819 adds support for componentDidCatch(error) (note that it currently does not include the info argument)

we will need to support componentDidCatch(error) to achieve parity with preact once that PR is merged in

Note that the preact PR https://github.com/developit/preact/pull/819 does not include support for static getDerivedStateFromError(error) Documentation here: https://reactjs.org/docs/react-component.html#static-getderivedstatefromerror

johnhaitas avatar Nov 02 '18 17:11 johnhaitas