@tanstack/virtual-core 3.19.15 → 3.19.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -552,12 +552,15 @@ class Virtualizer {
552
552
  this.elementsCache.forEach((cached) => {
553
553
  this.observer.observe(cached);
554
554
  });
555
+ let observing = false;
555
556
  this.unsubs.push(
556
557
  this.options.observeElementRect(this, (rect) => {
557
558
  this.scrollRect = rect;
558
559
  this.maybeNotify();
560
+ if (observing) this.measureElement(null);
559
561
  })
560
562
  );
563
+ observing = true;
561
564
  this.unsubs.push(
562
565
  this.options.observeElementOffset(this, (offset, isScrolling) => {
563
566
  var _a2, _b, _c, _d;