Repository navigation
Conversation
…a part of it Every query `experimental_load()` describes is an operation through the links. One that reads another's data has its reads in its context; a batch link that pipelines puts it in the request of what it reads, and an operation that waits goes in the next attempt of what it reads. So `retryLink` retries a query that failed by itself, the queries that read it go in that retry's request, and nothing before it is sent again. A run for one item that fails in the request of its list becomes an operation by itself, marked with that failure, which `retryLink` counts as its first attempt. `experimental_inputOf()` gives a link that doesn't pipeline the input with what it reads filled in. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`/kitchen-sink/retries` loads a post, its author and team, and a commenter for every comment, with failures you choose. It shows each request, the calls in it, every attempt the links see, and each query's run number, so you can watch `retryLink` send only the part of the chain that failed. The nested-queries docs say what links see now, document `experimental_inputOf()`, and gain a section on retries. 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. |
…nd let it send unstreamed `loggerLink` sits after `retryLink`, so the console has each attempt of each query. A Stream toggle sends with `httpBatchLink` instead, whose JSON body Chrome's Network tab shows; it shows none for a streamed response. Co-Authored-By: Claude Opus 5.5 <[email protected]>
vercel
Bot
temporarily deployed
to
Preview – examples-next-minimal-starter
November 24, 2026 00:20
Inactive
Once a query that read another's data has run in that request, the client has the data it read, and so its input. `loggerLink` logs its result with that input, and `retryLink` sends a retry as an operation like any other, with that input: a request of its own, which the queries that read it go in as soon as it opens. Regression check: loadRetry.test.ts "a retry of a query the server filled in goes with that input, as an operation like any other". Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ipeline `retryLink`, `loggerLink` and `httpLink` are as they were. A run's failure in the request of its list is the first attempt of its operation: the batch link that pipelines fails that attempt with it, once, without sending it, so `retryLink` counts it, and without one it is final. Once a query ran, its input is written on the operation the links hold, so a retry has it. `experimental_load()` sends what a query reads only to a link that pipelines; any other gets filled-in inputs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… of its own With an operation for every query, `loggerLink` logs each one, so naming the calls of a request on its operation's line repeats them. It goes, and with it what `loggerLink` cost a client that doesn't pipeline. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…skips queries that never ran With pipelining, once a query's retries give up, the queries that read it reject with its error, and `retryLink` asks `retry` about them too. The check lets `retry` skip them, so they don't wait `retryDelayMs` for nothing. Without pipelining there are no such errors. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ning()` wrapping their loader and handler What a pipelined batch needs, its calls, URL and body, the opening and closing of each operation's request and a stream kept open for the calls that read a failed operation, is in `experimental_pipelining()`. A batch link only hands it its loader and its handler, about 60 bytes gzipped over `main` instead of about 200. Each call goes in its request as the operation it is for, with a signal that keeps the request going until the call has its result. 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
retryLinkcouldn't retry part of a chain: a failure in the middle was final.What
experimental_load()is an operation through the links. One that reads another's data carries its reads in its context; a pipelining batch link puts it in that request.retryLinkretries a query that failed by itself; the queries that read it ride in the retry's request, and nothing before it runs again. A whole-request failure resends only the root; the rest ride along.retryLinkcounts it as attempt 1.experimental_isPipelineFallback(error): letsretryskip a query that never ran because the one it reads gave up. Only pipelining makes these errors.undefinedin the input,~reads/~priorFailurein the context); every other link gets complete inputs.retryLink,loggerLinkandhttpLinkare as onmain.maintoo, but for handingexperimental_pipelining()their loader and handler: ~60 B gzip overmainfor a client that doesn't pipeline, from ~200.Links
Alternatives considered
Testing
loadRetry.test.ts"a query that fails is retried with the queries that read it, and nothing before it" (/a,b,cthen/b,c; before,bfailed for good).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.