How can I use `onSettled` in the `experimental_createTRPCNextAppDirClient`?
Context
I want to migrate the following trpc/client hook to the experimental version
However, the
Problem
I want to migrate the following trpc/client hook to the experimental version
However, the
experimental_createTRPCNextAppDirClient exposes the mutation directly, not the useMutation anymoreProblem
- the
ClientContextfrom theProcedureArgsdoesn't seem to accept any callback configuration? (the...argstype for themutationon the consumer is
but I assume it's still the actual type)any - checking the trpc example I see it show cases a
mutationwithout any callback configs (https://github.com/trpc/trpc/blob/cf5783bebbec295db84ec7b5dafa33da114379ad/examples/.experimental/next-app-dir/src/app/post-example/page.tsx) - I also peeked at @julius's awesome acme-corp but it's similar to the trpc example in that it doesn't make use of callbacks.
"@trpc/client": "11.0.0-alpha-next-2023-11-01-15-02-16.94"

GitHub
Move Fast and Break Nothing. End-to-end typesafe APIs made easy. - trpc/trpc