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

Checking if the component is mounted before perfom some animation #146

Merged
merged 1 commit into from
Dec 13, 2014

Conversation

renanvalentin
Copy link
Contributor

When we use the button to remove some element from the DOM, it throws this error message:
Uncaught Error: Invariant Violation: replaceState(...): Can only update a mounted or mounting component.

I think is because we are trying to change the state of an unmounted object.

hai-cea pushed a commit that referenced this pull request Dec 13, 2014
Checking if the component is mounted before perfom some animation
@hai-cea hai-cea merged commit 8766d63 into mui:master Dec 13, 2014
@hai-cea
Copy link
Member

hai-cea commented Dec 13, 2014

Makes sense. Thanks @renanvalentin

@zannager zannager added the component: button This is the name of the generic UI component, not the React module! label Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants