Error when unmounting before loading is done
Closed this issue ยท 3 comments
Robinfr commented
If you unmount the Spritesheet before the loading is done, an error is thrown.
You probably have to check whether the component is still mounted if the onload callback.
EDIT: this line is probably returning null
since it has already been unmounted.
danilosetra commented
Robinfr commented
Will check it out, thanks!
Robinfr commented
Works great! ๐