Skip to content

UseEndpointMutationOptions

Defined in: wp-typia-rest/src/react-client-types.ts:136

Options for useEndpointMutation().

Req

Res

Context = unknown

optional client?: EndpointDataClient

Defined in: wp-typia-rest/src/react-client-types.ts:137


optional fetchFn?: ApiFetch

Defined in: wp-typia-rest/src/react-client-types.ts:138


optional invalidate?: EndpointInvalidateTargets | ((data, variables, validation) => EndpointInvalidateTargets)

Defined in: wp-typia-rest/src/react-client-types.ts:139


optional onError?: (error, variables, client, context) => void | Promise<void>

Defined in: wp-typia-rest/src/react-client-types.ts:146

unknown

Req

EndpointDataClient

Context | undefined

void | Promise<void>


optional onMutate?: (variables, client) => Context | Promise<Context>

Defined in: wp-typia-rest/src/react-client-types.ts:152

Req

EndpointDataClient

Context | Promise<Context>


optional onSettled?: (result, variables, client, context) => void | Promise<void>

Defined in: wp-typia-rest/src/react-client-types.ts:156

Res | undefined

unknown

EndpointValidationResult<Req, Res> | null

Req

EndpointDataClient

Context | undefined

void | Promise<void>


optional onSuccess?: (data, variables, validation, client, context) => void | Promise<void>

Defined in: wp-typia-rest/src/react-client-types.ts:166

Res | undefined

Req

EndpointResponseValidationResult<Res>

EndpointDataClient

Context | undefined

void | Promise<void>


optional resolveCallOptions?: (variables) => EndpointCallOptions | undefined

Defined in: wp-typia-rest/src/react-client-types.ts:173

Req

EndpointCallOptions | undefined