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
After upgrading to Gatsby 3 and starting to use gatsby-image-plugin i started to have some problem
in a page i have a list a of categories, when i click on a category i should have a list of images beloging to this category
it was correctly working on Img but now on GatsbyImage everytime i click the category (except for the first time) i got a bunch of errors : Warning: render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.
if i remove the GatsbyImg part (and change it with a dummy text) everything works correctly
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
After upgrading to Gatsby 3 and starting to use gatsby-image-plugin i started to have some problem
in a page i have a list a of categories, when i click on a category i should have a list of images beloging to this category
it was correctly working on Img but now on GatsbyImage everytime i click the category (except for the first time) i got a bunch of errors :
Warning: render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.
if i remove the GatsbyImg part (and change it with a dummy text) everything works correctly
the image list part looks like this:
when i click on a category to update the currPort state i call the following function:
which trigger a useEffect:
which update the currPort, that should cause the image part to re-render (the first jsx)
probably im missing something on how the GatsbyImage is working, any help?
Beta Was this translation helpful? Give feedback.
All reactions