chore(server): simplify callProcedure & undeprecated .createCaller()#6472
Conversation
WalkthroughThe pull request updates how tRPC procedures are invoked by replacing references to the router’s internal definition ( Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Helper
participant Router
participant Procedure
Client->>Helper: Initiate server-side call
Helper->>Router: callProcedure(router, params)
Router->>Procedure: Retrieve and execute procedure
Procedure-->>Router: Return result
Router-->>Helper: Pass result
Helper-->>Client: Return response
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (12)
🔇 Additional comments (5)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
🚅 Previously deployed to Railway in the trpc-sse-and-websockets project. Environment has been deleted. |
| :::caution | ||
| `router.createCaller()` has been deprecated and will be removed in v11 or v12 of tRPC. | ||
| ::: | ||
|
|
callProcedure & undeprecated .createCaller()callProcedure, & undeprecated .createCaller()
callProcedure, & undeprecated .createCaller()callProcedure, & undeprecated .createCaller()
commit: |
callProcedure, & undeprecated .createCaller()callProcedure, & undeprecated .createCaller()
callProcedure, & undeprecated .createCaller()callProcedure & undeprecated .createCaller()
|
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. |
🎯 Changes
router.createCaller(), it's practicalcallProcedure()-logic by allowing just passing the router inSummary by CodeRabbit
Refactor
Documentation