fix: useMutations onError Event hook gets triggered too early (#1585)
similar to #1558, except for onError
This commit is contained in:
@@ -109,6 +109,7 @@ export function useMutation<
|
||||
const apolloError = toApolloError(e)
|
||||
error.value = apolloError
|
||||
loading.value = false
|
||||
await nextTick()
|
||||
errorEvent.trigger(apolloError, {
|
||||
client,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user