v3.0.0
What's Changed
- Removed
fetchPolicy
configuration option. - Added
queryOptionsFromContext
configuration as a replacement. This new configuration option mirrorsvariablesFromContext
and allows programmatically setting theoptions
argument touseLazyLoadQuery
.
Migration
This section is only relevant if using the fetchPolicy
API. queryOptionsFromContext
has replaced this API, allowing for more configuration options when making the GraphQL request as well as modifying the options based on the query itself. A simple migration looks like:
- fetchPolicy: 'store-or-network',
+ queryOptionsFromContext: () => ({ fetchPolicy: 'store-or-network' })