Jay_Ohhh
Jay_Ohhh8mo 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
SebasPtsch8mo 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_OhhhOP8mo 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
SebasPtsch8mo ago
Can you please provide a minimal reproducible example ?
Jay_Ohhh
Jay_OhhhOP8mo ago
No description
Ben
Ben8mo ago
I have the same issue
simonecervini
simonecervini7mo 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...

Did you find this page helpful?