Skip to content

Commit b6255dd

Browse files
committed
fix(useMutation): revert uneeded changes
1 parent 06ad213 commit b6255dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react/useMutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function useMutation<
9999
const mutate = React.useCallback<
100100
UseMutateFunction<TData, TError, TVariables, TContext>
101101
>((variables, mutateOptions) => {
102-
return obsRef.current!.mutate(variables, mutateOptions).catch(noop)
102+
obsRef.current!.mutate(variables, mutateOptions).catch(noop)
103103
}, [])
104104

105105
if (currentResult.error && obsRef.current.options.useErrorBoundary) {

0 commit comments

Comments
 (0)