T
tRPC

Queries work but mutations do not

Queries work but mutations do not

Xxdxd8/17/2023
Odd bug I'm experiencing with TRPC + react-query + the koa adapter. I just set everything up per docs. I tried out a test query and a test mutation, both with very simple input validated by Zod. The query hits the backend route but the mutation never does - even if I change the inputs, etc. Does anyone have any idea where to look for the culprit here?
Xxdxd8/17/2023
Small update, I did some logging in Koa to see if Koa's getting the request at all. I see both the query request and the mutation request going in. So that's good... But my logging in the mutation procedure never gets hit. Seems like something goes wrong with the Koa middleware step?
NNeoBean8/17/2023
if you can share the relevant snippets or even the repo, maybe someone can take a look
KKseikyo8/30/2023
up! Just opened this issue on the t3 repo, have been struggling with this for days https://github.com/t3-oss/create-t3-app/issues/1549

Looking for more? Join the community!

T
tRPC

Queries work but mutations do not

Join Server