S4-NetQuest / react-scorm-provider

Components to easily enable SCORM API communication in React projects.
MIT License
61 stars 19 forks source link

Access scorm in componentDidMount method. #12

Closed DineshBhudia closed 4 years ago

DineshBhudia commented 4 years ago

Hi, want to know if it is possible to access scorm inside if componentDidMount lifecycle method. Basically I am trying to retrieve the suspend data from the LMS and then call my action from componentDidMount so that I can filter the api data with the suspend data but it seems I can't access it from there as the connection becomes active only after it moves onto the render methods. Is there amy way to access scorm from the actions or componentDidMount? Thanks