v3.0.0
What's Changed
- Removed
fetchPolicyconfiguration option. - Added
queryOptionsFromContextconfiguration as a replacement. This new configuration option mirrorsvariablesFromContextand allows programmatically setting theoptionsargument 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' })