Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for nextFetchPolicy from @apollo/client 3.1 #1054

Closed
dominik-bln opened this issue Sep 3, 2020 · 1 comment
Closed

Support for nextFetchPolicy from @apollo/client 3.1 #1054

dominik-bln opened this issue Sep 3, 2020 · 1 comment

Comments

@dominik-bln
Copy link

Is your feature request related to a problem? Please describe.

With the new major version @apollo/client 3 a new configuration parameter nextFetchPolicy was introduced and the behaviour of fetchPolicy has changed. To get similar behavior for cache-and-network as in the prior version it is necessary to set nextFetchPolicy: 'cache-only'.

Describe the solution you'd like

Support the new configuration parameter nextFetchPolicy as a prop for ApolloQuery.

Describe alternatives you've considered

Additional context

apollographql/apollo-client#6760 (comment)

@dominik-bln dominik-bln changed the title Support for nextFetchPolicy from @apollo/client 3 Support for nextFetchPolicy from @apollo/client 3.1 Sep 3, 2020
@Akryum
Copy link
Member

Akryum commented Oct 15, 2020

You can use the options prop to add extra options not listed in props.

@Akryum Akryum closed this as completed Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants