Skip to content

feat(react): add deferred fragment suspense - #3907

Open
JoviDeCroock wants to merge 3 commits into
feat/deferred-fragment-corefrom
feat/react-deferred-fragments
Open

JoviDeCroock wants to merge 3 commits into
feat/deferred-fragment-corefrom
feat/react-deferred-fragments

Conversation

@JoviDeCroock

@JoviDeCroock JoviDeCroock commented Aug 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add a beta React useFragment hook for masking fragment data
  • deferred tracking now lives in @urql/core's Client result pipeline, so useQuery needed no changes — nested Suspense boundaries resolve directly from later query results during client and server rendering
  • outside of Suspense, useFragment subscribes to makeFragmentSource so fetching resolves when a deferred patch arrives, without a parent rerender
  • document GraphQL Code Generator and gql.tada fragment-reference usage

This is the React part of the split of #3888 and is stacked on the core utilities PR.

@changeset-bot

changeset-bot Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1c820e2

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

This PR includes changesets to release 1 package
Name Type
urql Minor

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

Deploying urql with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1c820e2
Status: ✅  Deploy successful!
Preview URL: https://9a0e0264.urql.pages.dev
Branch Preview URL: https://feat-react-deferred-fragment.urql.pages.dev

View logs

@JoviDeCroock
JoviDeCroock force-pushed the feat/react-deferred-fragments branch from 162d816 to e5bcec3 Compare August 22, 2026 16:07

This branch has not been deployed

No deployments
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