Skip to content

v3.0.0

Compare
Choose a tag to compare
@rrdelaney rrdelaney released this 15 Aug 18:03
· 4 commits to main since this release

What's Changed

  • Removed fetchPolicy configuration option.
  • Added queryOptionsFromContext configuration as a replacement. This new configuration option mirrors variablesFromContext and allows programmatically setting the options argument to useLazyLoadQuery.

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' })