···11/*
22 Rendered but hidden. Only show when visible
33*/
44-import { useLayoutEffect, useRef, useState } from 'preact/hooks';
44+import { useEffect, useRef, useState } from 'preact/hooks';
55import { useInView } from 'react-intersection-observer';
6677// The sticky header, usually at the top
···2626 skip: visibleStart || visible,
2727 });
28282929- useLayoutEffect(() => {
2929+ useEffect(() => {
3030 if (!containerRef.current) return;
3131 const rect = containerRef.current.getBoundingClientRect();
3232 if (rect.bottom > TOP) {