updateComplete
tuning or additional API in lit-virtualizer
#52
Labels
updateComplete
tuning or additional API in lit-virtualizer
#52
When working with
LitElement
based web components I am accustomed to being able to rely onawait el.updateComplete
in order to know when the render process of said element has completed a pass. When attempting to rely on this same interface withlit-virtualizer
, particularly when attempting to run DOM snapshot testing with a reasonable amount of stability, the promise seems to resolve sometimes when the DOM is first written, sometimes after the initial scroll management occurs, and sometimes after the items have been applied. I'm not 100% sure but this seems to be due to the number of wrappedawait Promise.resolve();
that occur various intersections betweenlit-virtualizer
,LitScroller
,LitRepeater
, et al. It is possible to tune the resolution for it to be more predictable? If not, would it make sense to provide an alternate API that outlined when the initial batch of items (or lack of items) has been stamped?The text was updated successfully, but these errors were encountered: