You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using this package for a long time in a lot of projects and recently ive noticed a lot of issues regarding modals mounting and un-mounting especially with forms.
Most UI packages have modals built with open / closing animations and id like to use that closing animation, so if I just call modal.remove() the animation is not displayed. Ive tried to do an async call like this:
however in that scenario I have noticed that the modals are not actually being removed from the component tree and if I were to open that modal again, the form values still display the values of the previous modal because it did not get removed and re-rendered.
The text was updated successfully, but these errors were encountered:
Which UI library do you use? You need to call modal.remove() from the callback like afterHideAnimation of the Modal component from the UI lib. For example, the built-in muiDialogV5 helper calls modal.remove when onExited:
I have been using this package for a long time in a lot of projects and recently ive noticed a lot of issues regarding modals mounting and un-mounting especially with forms.
Most UI packages have modals built with open / closing animations and id like to use that closing animation, so if I just call
modal.remove()
the animation is not displayed. Ive tried to do an async call like this:however in that scenario I have noticed that the modals are not actually being removed from the component tree and if I were to open that modal again, the form values still display the values of the previous modal because it did not get removed and re-rendered.
The text was updated successfully, but these errors were encountered: