Closed Diniden closed 2 years ago
This may not be an issue with this component...Working on determining if it is or not...This is within storybookjs and I just discovered my component is never calling "beforeDestroy" or even "updated" when properties are changed. It's just remounting.
I am not having this issue with other components though, so I'm still suspect of this component causing me woes and misfortune.
Closed this as there was no further info coming in.
I may be missing something, but I have at this point tried everything to have a modal mounting point, use MountingPortal and render into that mounting point. No matter what I do, every update on my component creates duplicates within the DOM.
Modal root exists
Component uses MountinPortal to do it's thing
Devil spawn happens
Doesn't matter what props I set on MountingPortal. Every update spawns mass duplicates in my DOM.
My workaround is to nuke the modal root every update. But it's not ideal and is very frustrating.