Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the randomly appearing console warning #28

Open
metamn opened this issue Aug 1, 2019 · 1 comment
Open

Fix the randomly appearing console warning #28

metamn opened this issue Aug 1, 2019 · 1 comment

Comments

@metamn
Copy link
Owner

metamn commented Aug 1, 2019

I'm getting randomly this warning in the browser console. Sometimes it shows up, sometimes not, without touching the code.

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
    in ProgressiveImage (at ImageResponsive.js:204)
    in ImageResponsive (at PostFeaturedImage.js:188)
    in div (created by Context.Consumer)
    in StyledComponent (created by styled.div)
    in styled.div (at PostFeaturedImage.js:254)
    in PostFeaturedImage (at Post.js:73)
    in article (created by Article)
    in Article (created by Context.Consumer)
    in StyledComponent (created by Styled(Article))
    in Styled(Article) (at Post.js:72)
    in Post (at Slides.js:73)
    in div (created by Context.Consumer)
    in StyledComponent (created by styled.div)
    in styled.div (at Slide.js:84)
    in Slide (at Slides.js:72)
    in div (created by Context.Consumer)
    in StyledComponent (created by styled.div)
    in styled.div (at Slides.js:79)
    in ForwardRef (at Slider.js:254)
    in section (created by Section)
    in Section (created by Context.Consumer)
    in StyledComponent (created by Styled(Styled(Section)))
    in Styled(Styled(Section)) (at Slider.js:248)
    in Slider (at Content.js:206)
    in DisplayContent (at Content.js:228) wpThemeErrorOverlay.js:233:319716
    e wpThemeErrorOverlay.js:233
    React 5
    ProgressiveImage dist.js:187
    ProgressiveImage dist.js:176
@devloco
Copy link

devloco commented Aug 30, 2019

This should go away after you update to the latest create-react-wptheme.

The updating instructions are here: Updating Existing Themes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants