Skip to content

UseEndpointMutationOptions

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

Options for useEndpointMutation().

Req

Res

Context = unknown

optional client?: EndpointDataClient

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


optional fetchFn?: ApiFetch

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


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

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


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

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

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:156

Req

EndpointDataClient

Context | Promise<Context>


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

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

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:170

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:177

Req

EndpointCallOptions | undefined