apollo-error-overlay
Make apollo errors pretty and obvious
Apollo client passes network and graphql errors as props to you components, this is great for fine grained control, but when you are developing you often want a global error handler to catch errors quickly. Works with all apollo-client bindings (react, vue etc)
👀
Usage
npm i apollo-error-overlay --save-dev
// setup errorLinkconst errorLink = // setup httpLinkconst httpLink = uri: `http://localhost:80/graphql` // add links to the clientreturn link: errorLink cache:
Caveats
- Hot reloads currently only work with webpacks hmr