@dxos/react-ui-feed 0.14.0 → 0.16.0

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.
@@ -1411,7 +1411,7 @@ var Outline = ({ classNames, markers, visibleRange, tickSize = TICK_SIZE, width
1411
1411
  const [pointer, setPointer] = useState(null);
1412
1412
  const [navigated, setNavigated] = useState(null);
1413
1413
  const [available, setAvailable] = useState(0);
1414
- useEffect(() => {
1414
+ useLayoutEffect(() => {
1415
1415
  const parent = containerRef.current?.parentElement;
1416
1416
  if (!parent) return;
1417
1417
  const observer = new ResizeObserver(([entry]) => setAvailable(entry.contentRect.height));