Przejdź do głównej zawartości

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: (email) => Promise<NewsletterResult>

Subscribe an address; resolves with the outcome instead of throwing.

Parameters

email

string

Returns

Promise<NewsletterResult>


unsubscribe

unsubscribe: (email) => Promise<NewsletterResult>

Remove an address from the newsletter.

Parameters

email

string

Returns

Promise<NewsletterResult>