-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
pass mutation key to on sucess override #6716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe changes introduce the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant MutationHandler
participant QueryClient
Caller->>MutationHandler: Initiate mutation
MutationHandler->>QueryClient: Execute mutation
QueryClient-->>MutationHandler: Return result
MutationHandler->>Caller: Call onSuccess({ originalFn, queryClient, meta, mutationKey })
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🪧 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 (
|
@DawidWraga is attempting to deploy a commit to the trpc Team on Vercel. A member of the Team first needs to authorize it. |
Solves #6715 |
@trpc/client
@trpc/next
@trpc/server
@trpc/react-query
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this.
It fails CI right now
[1] src/internals/mutationOptions.ts:126:9 - error TS2353: Object literal may only specify known properties, and 'mutationKey' does not exist in type '{ originalFn: () => unknown; queryClient: QueryClient; meta: Record<string, unknown>; }'.
[1]
[1] 126 mutationKey,
[1] ~~~~~~~~~~~
[1]
Also, it would be good to add a test for this
Summary by CodeRabbit