nearform/graphql-hooks

Way to refetchAfterMutations only if mutation succeeds

ericbf opened this issue · 0 comments

Description

Right now, if you utilize refetchAfterMutations, it will refetch even if the mutation fails.

Suggested implementation

It would be better if it only refetched on success! If the mutation fails, we can reasonable assume that the query doesn’t need to be refetched.