Function: useLinkAddress()
useLinkAddress(
params
?: {mutation
:MutationOptions
<LinkedAddress
,Error
,LinkAddress
>; }):MutationResult
<"linkAddress"
,LinkedAddress
,Error
,LinkAddress
>
Add address to profile.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | object | No required parameters. |
params.mutation ? | MutationOptions <LinkedAddress , Error , LinkAddress > | See Tanstack Query - useMutation options. |
Returns
MutationResult
<"linkAddress"
, LinkedAddress
, Error
, LinkAddress
>
Example
const {
linkAddress, // useMutation's `mutateAsync` property
isPending,
isError,
error,
status,
...moreUseMutationResults
} = useLinkAddress();