Skip to content

Commit

Permalink
change error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Apr 11, 2022
1 parent be0d14a commit 76d7864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mutation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const mutation =
if (ditchMutationsUntilRef.current <= mutationStartedAt) {
setState({ error: error as Error, isMutating: false })
options.onError?.(error as Error, serializedKey, options)
throw error as Error
}
throw error
}
},
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit 76d7864

Please sign in to comment.