Conrad Reuter

Results 7 comments of Conrad Reuter

I just learned that calling `setState` will also silence the message: ```js class ErrorCatcher extends React.Component { componentDidCatch(error, info) { this.setState(null) this.props.onError(error); } render() { return this.props.children; } } ```

I just pipe the output to `grep -v ` for that.

IMHO disabling it in production might already be a good default.

There already is an Apollo plugin, so in case you are considering writing a Relay plugin you could get some inspiration there. I would gladly offer you my help and...

> As a workaround, I can implement my custom wrapper on top of all resolvers. You can also use [graphql-middleware](https://github.com/prisma/graphql-middleware) instead of "manually" wrapping all resolvers.

Makes sense to me. (: On Thu, Dec 2, 2021, 3:02 PM Andrew Arnott ***@***.***> wrote: > If @conradreuter agrees, I can send a > PR. > > — >...

IIRC my environment was Ubuntu inside WSL, and then connecting to WSL via VSCode. I most likely just ran the tests from command line in watch mode.