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
If an element is created but not yet connected, and no property has been set to enqueue an update, updateComplete currently resolves immediately (before the first render), rather than waiting until connection. However, if at least one property has been set, it will wait until connection before resolving. This is confusing and appears to be a bug.
Since an element will render unconditionally upon connection (regardless of whether it has properties that triggered rendering), the mental model should be that a newly constructed but disconnected element should be in a "pending update" state until it is connected. Hence updateComplete should not resolve until the element has first connected.
Description
If an element is created but not yet connected, and no property has been set to enqueue an update,
updateComplete
currently resolves immediately (before the first render), rather than waiting until connection. However, if at least one property has been set, it will wait until connection before resolving. This is confusing and appears to be a bug.Since an element will render unconditionally upon connection (regardless of whether it has properties that triggered rendering), the mental model should be that a newly constructed but disconnected element should be in a "pending update" state until it is connected. Hence
updateComplete
should not resolve until the element has first connected.Live Demo
https://jsbin.com/jiquhez/edit?html,console,output
Steps to Reproduce
Expected Results
Actual Results
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: