Queries work but mutations do not
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?
3 Replies
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?
if you can share the relevant snippets or even the repo, maybe someone can take a look
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
GitHub
bug: protected routes pending forever when trying to access context...
Provide environment information System: OS: macOS 13.4.1 CPU: (8) arm64 Apple M1 Memory: 108.92 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.17.1 - ~/Library/Caches/fnm_multishells/51275_1...