-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Dialog Child Component unmounts every time you reopen it #10572
Comments
@AlgusDark The The Modal component implements a |
Thanks! |
I know this is an old issue, but I'm confused about this, and I cannot find information about it elsewhere: should |
Having the same issue. |
not working for me. I have array Dialog. When i close modal A ( using keepMounted = true ) then re-open this Dialog will not unmounted. But if i close Dialog A and open Dialog B. the content will unmounted. |
I believe that when you open/close your dialog, the children components should call
componentWillReceiveProps
, but instead isunmounting/mounting
every time.Expected Behavior
Dialog child components should be mounted only one time.
Current Behavior
Every time you close your Dialog and re-open your Dialog, the children components is being mounted again.
Steps to Reproduce (for bugs)
https://codesandbox.io/s/oly01xlq0z
Context
I just want to update the Select Combo Box inside a Dialog when it receives a different prop, handle it with
componentWillReceiveProps
and setState. Right now I'm usingcomponentDidMount
and and setState.Your Environment
The text was updated successfully, but these errors were encountered: