Skip to content

Commit 2de2a0d

Browse files
author
JungHoonPark
authored
docs: describe exceptional behavior of onSuccess of useMutation.mutate (TanStack#1614)
1 parent c016346 commit 2de2a0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/src/pages/reference/useMutation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ mutate(variables, {
7777
- Optional
7878
- The variables object to pass to the `mutationFn`.
7979
- Remaining options extend the same options described above in the `useMutation` hook.
80+
- If you make multiple requests, `onSuccess` will fire only after the latest call you've made.
8081
- `mutateAsync: (variables: TVariables, { onSuccess, onSettled, onError }) => Promise<TData>`
8182
- Similar to `mutate` but returns a promise which can be awaited.
8283
- `status: string`

0 commit comments

Comments
 (0)