I would like to have some utilities for the mutations. What is supported right now is for queries: https://trpc.io/docs/client/react/useContext
Support for isMutating, or a way to use the client mutations with useIsMutating (https://tanstack.com/query/v4/docs/react/reference/useIsMutating)
I would like this to be working:
context = api.useContext()
context.client.foo.update.mutate({...})
isUpdating = useIsMutating(getQueryKey(api.foo.update)) > 0
Make mutations of useContext().client affect the result of useIsMutating()
or support for context.client.foo.update.isMutating
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too