Open johnemau opened 2 months ago
Although the reproduction steps may seem convoluted, they are really just an easy minimum reproduction. I encountered this issue when manipulating a list of <progress-ring>
's and needing to move a component from one positing in the list to another by changing it's DOM position.
@johnemau Please let me know if the issue still persists with 1.0.35
.
Reproduction steps:
document.body.append(document.querySelector('progress-ring'))
Expect: No error
Actual:
This might be a bug with stencil, I am not familiar with their component lifecycle, but somehow the
resumeFrames
function is null when the components connectedCallback is invoked.I assume that disconnecting the component from the DOM somehow clears the
resumeFrames
reference without reseting theisLoaded
state, so when we reattach to the DOM the component is in a bad state.