From a7cb541e9d4e03e1180b2bca699be458a3919027 Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 9 Oct 2026 23:50:49 +0200 Subject: [PATCH] u --- src/FillSpace.jsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/FillSpace.jsx b/src/FillSpace.jsx index 67cb1c1..c7e4633 100644 --- a/src/FillSpace.jsx +++ b/src/FillSpace.jsx @@ -141,6 +141,7 @@ class FillSpace extends Component { if (this.raf) return; this.raf = requestAnimationFrame(() => { this.raf = null; + console.log('vp') this._measure(); }); }; @@ -152,10 +153,6 @@ class FillSpace extends Component { this.observer = new ResizeObserver(() => this._onViewportChange()); - // Never observe the spacer's own parent: resizing the spacer would resize the parent. - // Skip content: every flip swaps all rows, which - // would fire the observer -> _measure -> setState -> render in a loop. - // Unit height is read lazily in _measure, so no observer is needed for it. const { aboveRef, belowRef, containerRef } = this.props; const aboveList = Array.isArray(aboveRef) ? aboveRef : [aboveRef]; const belowList = Array.isArray(belowRef) ? belowRef : [belowRef]; @@ -173,10 +170,6 @@ class FillSpace extends Component { } } - measure = () => { - this._measure(); - }; - _measure() { if (!this.ref) return;