Closed a-tokyo closed 6 years ago
Hi, I have the same issue, what did you do to solve it? thanks in advance.
@roruva I had to not use disableImagesLoaded
for now :/
I opened a PR that fixes it, hopefully it gets merged soon 👍
Edit: you can also use this at the meantime https://github.com/A-Tokyo/react-masonry-component
6.2.1 should be published. Apologies for the delay and thanks for the contribution
Description
When
disableImagesLoaded
is true,componentWillUnmount
throwsthis.imagesLoadedCancelRef is not a function
How to reproduce
disableImagesLoaded
prop, render then unmount the component.Fix
derefImagesLoaded
incomponentWillUnmount
ifimagesLoadedCancelRef
was truthy.PR: https://github.com/eiriklv/react-masonry-component/pull/128