Analogous to the useMutation hook returning both controlledResult and controlledVariantResult, it would be useful to have both a variant type and a full type when handling the promise returned by mutate.
There are (same as for the hook) situations where both errors and data is needed. Only having the variant makes this impossible. If there were any errors during a mutation, the variant is just Error, yet it might contain data that we'd with to do something with regardless.
I added a draft PR #98 (which assumes #97 will be merged).
Analogous to the
useMutation
hook returning bothcontrolledResult
andcontrolledVariantResult
, it would be useful to have both a variant type and a full type when handling the promise returned bymutate
.There are (same as for the hook) situations where both errors and data is needed. Only having the variant makes this impossible. If there were any errors during a mutation, the variant is just
Error
, yet it might contain data that we'd with to do something with regardless.I added a draft PR #98 (which assumes #97 will be merged).