Version: 2.0.0
AddressUpdateModal
The address update modal is used to update an existing address for the user.
Loading...
info
AddressUpdateModal requires the addressIdToEdit
to be set.
If you're using our default flow, the user selects this already.
But if you have your own custom flow, you can use the usePelcro hook to set it before switching to the address update view
like in the following example.
#
Usage#
Reference#
PropsonDisplay
#
() โ void
Callback function called when the modal is first displayed.
onClose
#
() โ void
Callback function called when the modal is closed.
onSuccess
#
(userObject) โ void
Callback function called when the address is updated succesfully.
onFailure
#
(errorObject) โ void
Callback function called when the address update fails.
type
#
"shipping"|"billing"
Address type, default is "shipping"
.