Skip to content

Commit 7654120

Browse files
committed
add note to the docs about shared options
1 parent 7d6b9fb commit 7654120

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,6 +2174,7 @@ const [mutate, { status, data, error, reset }] = useMutation(mutationFn, {
21742174
onSettled,
21752175
throwOnError,
21762176
useErrorBoundary,
2177+
{ ...selectedUseQueryOptions },
21772178
})
21782179

21792180
const promise = mutate(variables, {
@@ -2216,6 +2217,8 @@ const promise = mutate(variables, {
22162217
- `useErrorBoundary`
22172218
- Defaults to the global query config's `useErrorBoundary` value, which is `false`
22182219
- Set this to true if you want mutation errors to be thrown in the render phase and propagate to the nearest error boundary
2220+
- `selectedUseQueryOptions`
2221+
- *Selected* options of `useQuery` are also applicable here. E.g. `retry` and `retryDelay` can be used as described in the [`useQuery` section](#usequery). *Documentation of these options will be improved in the future.*
22192222
22202223
### Returns
22212224

0 commit comments

Comments
 (0)