Closed dschinkel closed 6 years ago
Alright going to look into this sometime today actually. Received your email as well.
The problem was that we had a web project using React v15 and then we import a shared React project of ours that the web also uses that has some shared custom React components of ours. Well that shared project was the project I upgraded from React v15 to v16. But you can't run 2 versions of react in the same project so that was causing the Unable to find node on an unmounted component error. I think your component is probably fine, we're upgrading our web project to 16 and I'll report back.
thanks again for responding @loktar00
We upgraded our project to the following:
It breaks our entire site because almost every image on our site is wrapped with react-lazy-load. Works just fine in React 15. This is a site which receives millions of hits so if we can't get this working in React 16 then we're stuck. When we remove
<LadyLoad />
below, the image comes through just fine. But we need to resolve this, so we can finish our React 16 upgrade.We've run the code below for over a year now. But that was via React 15.
Now, after upgrading, every image in our site is broken, because wrapped with it:
Here is the error we get:
Shows it's on line 107 in the lazy load source which is here:
Screenshots here show that it does not work
this is a site that gets hundreds of millions of hits so it's important to try to get it resolved. I can't figure out in the lazy code what the problem is, I've looked at it a bit.