Jay_Ohhh
Jay_Ohhh3mo ago

Can't access mutate utils by createTRPCQueryUtils

I can use any query utils by createTRPCQueryUtils but not mutate utils. Here is my code
No description
No description
No description
7 Replies
SebasPtsch
SebasPtsch3mo ago
I don't know any reason why this wouldn't work as createTRPCQueryUtils uses all the same internals as the react query integration, are all your types succeeding?
Jay_Ohhh
Jay_Ohhh3mo ago
Just mutate methods not work, can't invoke clientUtils.resume.update.[any_query_util]. But I can invoke clientUtils.resume.get.[any_query_util]:feelsadman:
SebasPtsch
SebasPtsch3mo ago
Can you please provide a minimal reproducible example ?
Jay_Ohhh
Jay_Ohhh3mo ago
No description
Ben
Ben3mo ago
I have the same issue
simonecervini
simonecervini2mo ago
I opened an issue for this https://github.com/trpc/trpc/issues/5800
GitHub
bug: createTRPCQueryUtils should support mutations · Issue #5800 ...
Provide environment information System: OS: macOS 14.5 CPU: (10) arm64 Apple M1 Max Memory: 4.26 GB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.5.1 - ~/.nvm/versions/node/v20.5.1/bin/node n...