Repository navigation
Conversation
…ith either loader
`experimental_query()`, `experimental_infiniteQuery()`, `experimental_dataOf()`
and `experimental_perItem()` now live in `@trpc/client` and build plain
descriptions. `experimental_load(client, entries)` loads one as promises by
key, replacing `experimental_nested()` and its `.with()` / `.map()` builder.
`loadHandles()` loads the same description: its entries become prefetch
entries, and `{ wait: [...] }` makes them ensure entries.
The TanStack Query handles take the shared `dataOf` refs and per-item state
from the client, so one description reads alike in both packages.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The vanilla page loads a description with `experimental_load()`, per item
with `experimental_perItem()`, and shows infinite queries and the same
description in `loadHandles()`. The TanStack Query page gains `{ wait }`.
The kitchen-sink nested demo uses the new API.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
vercel
Bot
temporarily deployed
to
Preview – examples-next-minimal-starter
November 23, 2026 22:48
Inactive
…ting, and `null` to skip `experimental_perItem()`'s callback can return an object of entries, which read each other and run once per item, and entries per item nest: a list per item, of a list in the item or in an item's query. A list in a query that runs for every item is one flat list, in that order. `null` skips an entry, in both loaders. `loadHandles()` loads an object per item as a group of entries per item. Inputs and data are plain objects, arrays and primitives: the special handling of Maps, Sets, Dates and class instances goes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…path` hook `experimental_query()` reads the path that a tRPC client's and an options proxy's `toString()` name already, so the client proxy is as it was. Co-Authored-By: Claude Opus 5.5 <[email protected]>
KATT
added a commit
that referenced
this pull request
Nov 24, 2026
…elining PR Bring the client, server and tests from the tail of the stack (#8163, #8176) into this PR: `experimental_query()` / `experimental_dataOf()` / `experimental_perItem()` and `experimental_load()` in `@trpc/client` replace `experimental_nested()`, each query is an operation of its own so `retryLink` retries only what failed, and `experimental_isPipelineFallback()` tells a fallback apart. Adds the kitchen-sink retries page. The TanStack-only parts stay in #8041: the docs here don't link to the TanStack nested-queries page, `unstable-internals` doesn't re-export what only the handles use, and `RequestPath` comes with them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
KATT
added a commit
that referenced
this pull request
Nov 24, 2026
Folds #8163 and #8176 into this PR: the handles load the shared descriptions of `@trpc/client`, and the tree now matches the tail of the stack (f4133ea), with the TanStack docs, demos and blog kitchen sink. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Folded into the bottom of the stack, so closing:
The branch stays. |
Contributor
|
This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
loadHandles(). The plain client had a separate builder,experimental_nested(), with its own code. This tries one description for both.What
experimental_query,experimental_infiniteQuery,experimental_dataOfandexperimental_perItemmove to@trpc/client. The TanStack package re-exports them.experimental_load(client, entries)replacesexperimental_nested(). It returns a promise per key.loadHandles()takes the same entries as prefetch entries.{ wait: [...] }makes them ensure entries.experimental_perItem(wasexperimental_entryPerItem) takes an object of entries per item, which read each other, and nests.nullskips an entry in both loaders.dataOf(entry, cb)form stays: entry types don't record what they read, so without it TanStack can't type unfinished handles.Links
experimental_loadAlternatives considered
dataOfcallback: unsound handle types.Testing
load.test.ts(ported fromnested.test.ts) andhandles.shared.test.tsx; the old suites pass unchanged except for error messages.AI model
Claude Opus 5.5
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.