fix: useMutations onError Event hook gets triggered too early (#1585)

similar to #1558, except for onError
This commit is contained in:
Jeroen de Jong
2025-03-07 16:08:04 +01:00
committed by GitHub
parent d42188786c
commit 22f6797c34
@@ -109,6 +109,7 @@ export function useMutation<
const apolloError = toApolloError(e)
error.value = apolloError
loading.value = false
await nextTick()
errorEvent.trigger(apolloError, {
client,
})