John Haitas

Results 4 issues of John Haitas

This should resolve https://github.com/developit/preact-render-to-string/issues/65. It includes code from https://github.com/developit/preact-render-to-string/pull/66. It is kept as a separate PR deliberately because `preact` doesn't currently have incoming support for `static getDerivedStateFromError(error)` https://github.com/developit/preact/pull/819 Documentation here:...

This does not include support for the `info` argument because `preact`'s support for `componentDidCatch()` does not pass this argument (https://github.com/developit/preact/pull/819#issue-136629967) Also includes 3 new tests.

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...

In addition to supporting `componentDidCatch` (see https://github.com/developit/preact-render-to-string/issues/64) `preact-render-to-string` should support `static getDerivedStateFromError(error)` Documentation here: https://reactjs.org/docs/react-component.html#static-getderivedstatefromerror