A customer hook that helps you easily delete a customer address.
// import import { useCustomerDeleteAddress } from '@backpackjs/storefront'; // instantiation const { deleteAddress, ...deleteStatus } = useCustomerDeleteAddress(); // use const deletedAddressId = await deleteAddress({ id })
Last updated 1 year ago
id
the id of the address being deleted
deletedAddressId
deleted address id