fix: reset count on change

This commit is contained in:
TrèsAbhi committed 2026-01-15 14:36:52 -06:00
1 parent 610b59f4c6
commit a7ee51526a
1 file changed
+2
@@ -24,6 +24,8 @@ export function IncrementalLoader<Props extends { key: string }>({
const [count, setCount] = useState(initial);
const sliced = data.slice(0, count);
useEffect(() => setCount(initial), [data, initial]);
return (
<>
{!skeleton &&