Getting Member Information - SPA
Specific examples of how to use the Javascript API.
In fronted environments such as single page applications, like React, Angular or Vue, the use of Events will not work as needed because MemberSpace will only fire the .ready event when initialized. For reliable access to memberInfo use the following Promise function that incorporates a few different components of the MemberSapce JavaScript API.
This is very useful when you need this information only in specific screens or specific components in frameworks such as React, Angular and Vue.
Last updated