MemberSpace.member.info
Only dispatched if there is a logged in user:
At bootstrap with cached user information, (re-dispatched when fresh information arrives and it is different from the cached)
After the user logs in
Re-dispatched every time some relevant information changes.
The detail
field of the event contains a MemberInfo object.
const handleMemberInfo = ({ detail }) => {
const { memberInfo } = detail;
console.log(memberInfo.email)
}
document.addEventListener('MemberSpace.member.info', handleMemberInfo);
Last updated
Was this helpful?