Conrad Reuter

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