Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I am working on an iOS app using storefront api, i have a profile page that allow user to add/update/delete addresses. so far i've managed to use these functions
Storefront.buildMutation on:
- customerAddressCreate
- customerAddressUpdate (passed address ID)
- customerAddressDelete (passed address ID)
those return no errors, the addresses data shown correctly on the store website, however the issue is addresses i got on the app still remains the same.
Context:
Troubleshooting Steps Taken:
Here is the code snippet that i have on a function that get all the customer addresses
.customer(customerAccessToken: accessToken) { $0 .id() .displayName() .email() .firstName() .lastName() .phone() .updatedAt() .addresses(first: Int32(100)) { $0.nodes { $0 .id() .firstName() .lastName() .phone() .address1() .address2() .city() .country() .countryCodeV2() .province() .provinceCode() .zip() } }