Major Changes
- Change the
persistedFetchExchange
to be an exchange factory. ThepersistedFetchExchange
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 theClient
'spreferGetMethod
option isfalse
.
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()
],
});