Skip to content

feat(refocus): opt out operations from refetching#3865

Open
aryan02420 wants to merge 3 commits intourql-graphql:mainfrom
aryan02420:patch-1
Open

feat(refocus): opt out operations from refetching#3865
aryan02420 wants to merge 3 commits intourql-graphql:mainfrom
aryan02420:patch-1

Conversation

@aryan02420
Copy link
Copy Markdown

Reason for change

  • I am cleaning up and migrating a large application and would like to remove all custom patches

Changes and Summary

  • Added a refetchIf option to refocusExchange
    • Allows consumers to explicitly opt in or out of refetching
    • Mirrors patterns used in other exchanges:
      • requestPolicyExchangeshouldUpgrade
      • retryExchangeretryIf
    • Enables per-operation control instead of relying on global configuration
    • Aligns well with React Query’s useQuery, allowing behavior to be customized at the operation level where application context is available

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 17, 2026

🦋 Changeset detected

Latest commit: 7490dac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@urql/exchange-refocus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant