Interface: UseNewsletterReturn
Properties
isSubscribing
isSubscribing:
boolean
true while a subscribe call is in flight.
isUnsubscribing
isUnsubscribing:
boolean
true while an unsubscribe call is in flight.
subscribe
subscribe: (
Promise<NewsletterResult>
Subscribe an address; resolves with the outcome instead of throwing.
Parameters
email
string
Returns
Promise<NewsletterResult>
unsubscribe
unsubscribe: (
Promise<NewsletterResult>
Remove an address from the newsletter.
Parameters
email
string
Returns
Promise<NewsletterResult>