Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Allow passing a fetchPolicy to useBackgroundQuery #1293

Merged
merged 1 commit into from
Feb 25, 2020
Merged

Conversation

tleunen
Copy link
Contributor

@tleunen tleunen commented Feb 21, 2020

useBackgroundQuery doesn't currently allow passing a custom fetchPolicy, but it will still forward the options to client.watchQuery().

So I've decided to allow it as it might be useful for some people (like me) which would like to trigger a cache-first query instead of the default network-only query.

Type of change

  • react-graphql Patch: Bug/ Documentation fix (non-breaking change which fixes an issue or adds documentation)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above

@tleunen tleunen requested a review from a team February 21, 2020 18:22
@tleunen tleunen merged commit b0d82da into master Feb 25, 2020
@tleunen tleunen deleted the useBackgroundQuery branch February 25, 2020 13:22
@carysmills carysmills deployed to beta-test-formatting-12-hr-dates February 26, 2020 19:32 Active
@michenly michenly temporarily deployed to production February 27, 2020 20:05 Inactive
@helloneele helloneele deployed to test-use-memoized-number-format March 6, 2020 19:25 Active
@TayKangSheng TayKangSheng deployed to expand_locale_support_for_shopify_address March 9, 2020 08:16 Active
@michenly michenly temporarily deployed to gem March 24, 2020 21:43 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants