You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update callback return types to Promise<void> | void in mutation-related documentation
This commit refines the documentation for mutation-related callbacks (`onSuccess`, `onError`, `onSettled`, and `onMutate`), changing their return types from `Promise<unknown> | unknown` to `Promise<void> | void`.
Copy file name to clipboardExpand all lines: docs/framework/react/reference/useMutation.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -68,15 +68,15 @@ mutate(variables, {
68
68
- This function will fire before the mutation function is fired and is passed the same variables the mutation function would receive
69
69
- Useful to perform optimistic updates to a resource in hopes that the mutation succeeds
70
70
- The value returned from this function will be passed to both the `onError` and `onSettled` functions in the event of a mutation failure and can be useful for rolling back optimistic updates.
0 commit comments