bigcommerce / storefront-data-hooks

Hooks for React Storefront UI Components
MIT License
166 stars 36 forks source link

Add Customer Address Hooks: get, add, update, remove. #56

Closed magicspon closed 3 years ago

magicspon commented 3 years ago

Allow getting, adding, modifying and deleting customer addresses with hooks.

All hooks require the user to be authenticated, if not, they will return an error.

magicspon commented 3 years ago

the error handling definitely needs cleaning up... i'll have a play

jorgemasta commented 3 years ago

We should add all the address related hooks to a folder as we do fro cart: src/address/{here the hooks]

magicspon commented 3 years ago

@jorgemasta thanks for picking this up. Sorry about the radio silence, I've not had a chance to work on this.

jorgemasta commented 3 years ago

Hello @jivewise ! I have made some changes and fixes based on @magicspon's work.

Thanks for your contribution @magicspon 🙌