MemberSpace.ready
Dispatched only once, when widget becomes ready with a variety of information in the event detail. The detail
field of the event contains MemberInfo object if the member is logged in.
const handleReady = ({ detail }) => {
const { memberInfo } = detail;
if (memberInfo) {
console.log(memberInfo.email)
}
}
document.addEventListener('MemberSpace.ready', handleReady);
Last updated
Was this helpful?