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

issues after componentWillLeave #191

Closed
chrisdrackett opened this issue Aug 15, 2017 · 3 comments
Closed

issues after componentWillLeave #191

chrisdrackett opened this issue Aug 15, 2017 · 3 comments
Assignees
Labels

Comments

@chrisdrackett
Copy link

I'm trying to follow the react example in the doc and added componentWillLeave along with componentWillEnter

Everything works great, however after the component leaves I get the following in the console:

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the MotionValue component.

@mattgperry
Copy link
Collaborator

@chrisdrackett Thanks for letting me know, I'll take a look

@mattgperry mattgperry self-assigned this Aug 15, 2017
@mattgperry mattgperry added the bug label Aug 15, 2017
@souporserious
Copy link
Contributor

souporserious commented Feb 10, 2018

Could this be due to the MotionValue component getting unmounted while in the middle of a setState call? Similar to this issue in React Motion. I can submit a PR with a similar fix if you think it's the same @InventingWithMonster.

@mattgperry
Copy link
Collaborator

Closing as Popmotion x React is deprecated in favour of React Pose

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

No branches or pull requests

3 participants