Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Warning: Can't perform a React state update on an unmounted component. #912

Open
niklabh opened this issue Jun 16, 2020 · 2 comments
Open

Comments

@niklabh
Copy link
Contributor

niklabh commented Jun 16, 2020

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 a useEffect cleanup function.
in Address (created by Styled(Address))
in Styled(Address) (at OnchainCreationLabel.tsx:21)
in div (at OnchainCreationLabel.tsx:19)
in OnchainCreationLabel (created by Styled(OnchainCreationLabel))
in Styled(OnchainCreationLabel) (at GovernanceCard.tsx:59)
in div (at GovernanceCard.tsx:57)
in div (created by Responsive)
in Responsive (at GovernanceCard.tsx:56)
in div (created by Segment)
in Segment (at GovernanceCard.tsx:44)
in div (created by SegmentGroup)
in SegmentGroup (at GovernanceCard.tsx:40)
in div (at GovernanceCard.tsx:39)
in GovernanceCard (created by Styled(GovernanceCard))
in Styled(GovernanceCard) (at ReferendaListing.tsx:30)
in a (created by LinkAnchor)
in LinkAnchor (created by Context.Consumer)
in Link (at ReferendaListing.tsx:29)
in li (at ReferendaListing.tsx:28)
in ul (at ReferendaListing.tsx:22)
in Referenda (created by Styled(Referenda))
in Styled(Referenda) (at ReferendaContainer/index.tsx:31)
in ReferendaContainer (at Referenda/index.tsx:19)
in div (created by GridColumn)
in GridColumn (at Referenda/index.tsx:18)
in div (created by Grid)
in Grid (at Referenda/index.tsx:17)
in div (at Referenda/index.tsx:15)
in OnchainPostsContainer (created by Styled(OnchainPostsContainer))
in Styled(OnchainPostsContainer) (at App.tsx:108)

@Tbaut
Copy link
Collaborator

Tbaut commented Jun 16, 2020

Can you please add some context? Where did this happen?
I've seen it happening in the past if you click on a link while the api isn't loaded yet is that the same?

@niklabh
Copy link
Contributor Author

niklabh commented Jun 16, 2020

this happens when some on chain post is loading and you click elsewhere to other screen

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

No branches or pull requests

2 participants