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 searched for existing issues that already report this problem, without success.
Stencil Version
4.26.0
Current Behavior
Regarding ticket 4284 we have a situation where it's still not working. If you add a stencil component between the dynamic component and your slot all stencil components in the slot will have disconnectedCallback called.
Edit: It looks more general every time there is a tag or something else between the dynamic component and the slot this issue happen
Expected Behavior
Stencil components in slot don't have disconnectedCallback called in the described situation.
System Info
Steps to Reproduce
Create a master stencil component.
Add a dynamic component.
Add inside master stencil component --> dynamic component another component and a slot.
Use master component with another stencil component in the slot.
valentinbourqui
changed the title
bug: slot content went unmount within dynamic component with and mid-component
bug: slot content has disconnectedCallback called within dynamic component with and mid-component
Feb 17, 2025
For whoever tackles this .. my initial notes are this only happens with nonshadow: true components.
Probably something to do with the lack of native <slot /> - the slotted content gets removed / re-added.
Prerequisites
Stencil Version
4.26.0
Current Behavior
Regarding ticket 4284 we have a situation where it's still not working. If you add a stencil component between the dynamic component and your slot all stencil components in the slot will have disconnectedCallback called.
Edit: It looks more general every time there is a tag or something else between the dynamic component and the slot this issue happen
Expected Behavior
Stencil components in slot don't have disconnectedCallback called in the described situation.
System Info
Steps to Reproduce
Create a master stencil component.
Add a dynamic component.
Add inside master stencil component --> dynamic component another component and a slot.
Use master component with another stencil component in the slot.
Activate/deactivate dynamic component
Code Reproduction URL
https://codesandbox.io/p/devbox/broken-conditial-load-forked-g698w7
Additional Information
No response
The text was updated successfully, but these errors were encountered: