useUser
The useUser hook returns a series of methods for managing a Shopify customer account. The customer must have an active authentication session (see useAuth) for these methods to work.
Represents the current user.
Example:
String indicating the status of the user in Redux. This string can be used to determine if the user has been loaded yet, which happens asynchronously after page load.
Example:
Adds a new address to the Shopify customer's address book.
Example:
Reloads the current user. This is automatically called on every page load and with every other useUser method.
Example:
Updates an address in the Shopify customer's address book.
Example:
Updates which address is marked as the default address in the Shopify customer's address book.
Example:
Removes an address from the Shopify customer's address book.
Example: