-
Notifications
You must be signed in to change notification settings - Fork 49.9k
Closed
Labels
Component: ReconcilerResolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityType: Needs Investigation
Description
bug
What is the current behavior?
For the same component, componentDidMount is called multiple times, without calling componentWillUnmount , when using ReactDOM.unmountComponentAtNode .
You can use the link below to reproduce it:
https://codesandbox.io/s/x76mlw16rp
What is the expected behavior?
componentWillUnmount should be called before calling componentDidMount again.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
16.x
Metadata
Metadata
Assignees
Labels
Component: ReconcilerResolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityType: Needs Investigation