github urql-graphql/urql @urql/exchange-persisted-fetch@1.0.0

latest releases: @urql/exchange-graphcache@7.2.0, @urql/exchange-throw-on-error@0.1.0, @urql/solid@0.1.0...
4 years ago

Major Changes

  • Change the persistedFetchExchange to be an exchange factory. The persistedFetchExchange now
    expects to be called with options. An optional option, preferGetForPersistedQueries, may now
    be passed to send persisted queries as a GET request, even when the Client's preferGetMethod
    option is false.

To migrate you will have to update your usage of persistedFetchExchange from

import { persistedFetchExchange } from '@urql/exchange-persisted-fetch';

createClient({
  exchanges: [
    persistedFetchExchange
  ],
});

to the following:

import { persistedFetchExchange } from '@urql/exchange-persisted-fetch';

createClient({
  exchanges: [
    // Call the exchange and pass optional options:
    persistedFetchExchange()
  ],
});

Don't miss a new urql release

NewReleases is sending notifications on new releases.