Can't access mutate utils by createTRPCQueryUtils
I can use any query utils by createTRPCQueryUtils but not mutate utils.
Here is my code
7 Replies
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?
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:Can you please provide a minimal reproducible example ?
I have the same issue
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...