I have been using as lit-html in my own custom web-component library. I have third party webcompobent :
html`<lottie-player src=${state.url} background="transparent" speed="1" style="width: 100%; height: 100%;" loop autoplay></lottie-player>`
This third party components do not updates itself whenever src
attribute is changed on it. I understand, they have not designed it as such.
Is there a way to force lit-html to re-render this, as when I chnage the state.url
, instead of deleting old node and creating new one, lit-html keep the same node intact and changes only its attribute.
If there a way to force re-render for this specific template each time ?