Repository navigation
feat(subscriptions): connection state - #6084
Conversation
|
🚅 Previously deployed to Railway in the trpc-sse-and-websockets project. Environment has been deleted. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
cc @Nick-Lucas @BeBoRE this is ready for review 🙃 |
| `retryLink` is a link that allows you to retry failed operations in your tRPC client. It provides a customizable way to handle transient errors, such as network failures or server errors, by automatically retrying the failed requests based on specified conditions. | ||
|
|
||
| :::tip | ||
| If you use `@trpc/react-query` you don't generally need this as it's built into `@tanstack/react-query`. |
There was a problem hiding this comment.
might be ambiguous, not everything in @trpc/react-query is built on react query and have it baked in, useSubscription being the subject of this PR. Not sure how to add clarity without getting wordy though
@KATT have looked it over, not gotten into the nitty gritty of internals but the public API and docs look great overall. Few suggestions but I'll approve now |
# Conflicts: # packages/server/src/unstable-core-do-not-import/http/resolveResponse.ts # packages/server/src/unstable-core-do-not-import/stream/sse.test.ts
|
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. |
skipLibCheckenabled #6136🎯 Changes
retryLink- could potentially be extended to support keeping track of resuming correctlastEventIdlaterexperimental_shouldRecreateOnErrorhttpSubscriptionLinkresolveResponseso individually batched messages return error created in context e.g. thehttpSubscriptionLinkwill now serialize errors thrown in the context📚 Docs
✅ Checklist