Skip to content

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 added 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: button Changes related to the button.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants