react-popover icon indicating copy to clipboard operation
react-popover copied to clipboard

setState errors on navigation

Open oyeanuj opened this issue 6 years ago • 2 comments

Hi @jasonkuhrt, I keep seeing these errors in the console every time I navigate or the parent component (that contains the Popover) unmounts.

warning.js:33 Warning: Can't call setState (or forceUpdate) 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 Tooltip (at LoggedInNav.js:94)
    in div (created by styled__NavSection)
    in styled__NavSection (at LoggedInNav.js:93)
    in nav (created by styled__NavBar)
    in styled__NavBar (at LoggedInNav.js:78)
    in LoggedInNav (at GeneralHeaderNav.js:126)
    in GeneralHeaderNav (created by Connect(GeneralHeaderNav))
    in Connect(GeneralHeaderNav) (at StandardPage.js:49)

Seems like it is happening within this library - thoughts on how best to fix this

Thank you!

oyeanuj avatar Apr 19 '18 18:04 oyeanuj

@jasonkuhrt FYI, this is happening even with the latest versions of the library. Any ideas what might be going on?

oyeanuj avatar May 28 '18 01:05 oyeanuj

@jasonkuhrt Ping - any ideas what might be happening here?

oyeanuj avatar Jun 24 '18 01:06 oyeanuj