fix formatting

This commit is contained in:
Ajay Bura 2026-08-17 15:03:31 +05:30
commit feb29924d2

View file

@ -177,21 +177,13 @@ export const useVirtualPaginator = <TScrollElement extends HTMLElement>(
opts?: ScrollToOptions;
}>();
const propRef = useRef({
range,
limit,
count,
});
const propRef = useRef({ range, limit, count });
if (propRef.current.count !== count) {
// Clear restoreScrollRef on count change
// As restoreScrollRef.current.anchorItem might changes
restoreScrollRef.current = undefined;
}
propRef.current = {
range,
count,
limit,
};
propRef.current = { range, count, limit };
const getItems = useMemo(() => {
const items = generateItems(range);