Skip to main content

Type parameters

Name
TData

Properties#

awaitRefetchQueries#

Optional awaitRefetchQueries: boolean

Await refetch resolutions before calling the mutation actually complete

Defined in: react/src/mutation/useMutation.ts:30


noCache#

Optional noCache: boolean

Defined in: react/src/mutation/useMutation.ts:12


nonSerializableVariables#

Optional nonSerializableVariables: boolean

Activate special handling of non-serializable variables, for example, files uploading

default false

Defined in: react/src/mutation/useMutation.ts:41


onCompleted#

Optional onCompleted: (data: TData) => void

Type declaration:#

▸ (data: TData): void

Parameters:#

NameType
dataTData

Returns: void

Defined in: react/src/mutation/useMutation.ts:13


onError#

Optional onError: OnErrorHandler

Defined in: react/src/mutation/useMutation.ts:14


refetchQueries#

Optional refetchQueries: unknown[]

Refetch specific queries after mutation completion.

You can give functions or parts of the schema to be refetched

Defined in: react/src/mutation/useMutation.ts:26


retry#

Optional retry: RetryOptions

Retry behaviour

default false

Defined in: react/src/mutation/useMutation.ts:20


suspense#

Optional suspense: boolean

Enable suspense behavior

Defined in: react/src/mutation/useMutation.ts:34

Last updated on by github-actions[bot]