examples/with-retry/README.md
@urql/exchange-retry’s retryExchangeIntegrating urql is as simple as:
yarn add urql graphql
# or
npm install --save urql graphql
yarn add @urql/exchange-retry
# or
npm install --save @urql/exchange-retry
This example shows urql in use with @urql/exchange-retry's retryExchange
to implement retrying failed operations. This largely follows the "Retrying Operations" docs
page
and uses the trygql.formidable.dev/graphql/intermittent-colors
schema, which emits a special NO_SOUP error randomly.
To run this example install dependencies and run the start script:
yarn install
yarn run start
# or
npm install
npm run start
This example contains:
urql bindings and a React app with a client set up in src/App.jsxretryExchange from @urql/exchange-retry in src/App.jsxsrc/Color.jsx