The DotLottie instance is attached on firstUpdated and destroyed on disconnectedCallback
If we move a dotlottie-wc component (e.g. elem.appendChild / elem.replaceChildren / ...), the web component will be disconnected and the DotLottie instance won't be recreated.
Is there a reason i am missing why firstUpdated is used instead of connectedCallback ?
Overview
The DotLottie instance is attached on
firstUpdated
and destroyed ondisconnectedCallback
If we move a dotlottie-wc component (e.g. elem.appendChild / elem.replaceChildren / ...), the web component will be disconnected and the DotLottie instance won't be recreated.Is there a reason i am missing why firstUpdated is used instead of connectedCallback ?