Open LFSCamargo opened 3 years ago
Hi @LFSCamargo, the behavior of useMutation is conditioned by the commitMutation of relay-runtime https://github.com/facebook/relay/blob/master/packages/relay-runtime/mutations/commitMutation.js#L65 It would be more correct to propose this in relay-runtime.
The Problem
The return type for the server is different from the relay error type so i created the interface and a helper to handle errors and i got the error bellow i think a good solution would be to add the generic type to the useMutation hook
Behaviour
How i thought to resolve this issue