You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when trying to call a goToAndPlay method on the animationRef element.
Uncaught TypeError: Cannot read property 'error' of null
at AnimationItem.triggerEvent (lottie.js:236)
at AnimationItem.triggerRenderFrameError
Based on the blow code the errors goes away if I remove my set state call in eventHandler.
setPath(collection[index]);
Obviously I need that to keep my queue loop going of new loottie files.
Anyone might know why this error is happening ?
It looks like because i'm using a queue to update the lottie animationData after each animation completes, i'm seeing that the currentFrame of ref only updates for the first lottie animation after that it stops updating. It would seem the ref is old and not getting update internally ? Which might have something to do with why its throwing errors like this.
I'm getting this error when trying to call a goToAndPlay method on the animationRef element.
Based on the blow code the errors goes away if I remove my set state call in eventHandler.
setPath(collection[index]);
Obviously I need that to keep my queue loop going of new loottie files.
Anyone might know why this error is happening ?
Also do we really need to add the below work around to fix the animationRef typescript warning you get when you don't add this.`
The text was updated successfully, but these errors were encountered: