From feb29924d24fb49a16d8d9636e612dc798a82c10 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Mon, 17 Aug 2026 15:03:31 +0530 Subject: [PATCH] fix formatting --- src/app/hooks/useVirtualPaginator.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/app/hooks/useVirtualPaginator.ts b/src/app/hooks/useVirtualPaginator.ts index 1200e153..ffd66963 100644 --- a/src/app/hooks/useVirtualPaginator.ts +++ b/src/app/hooks/useVirtualPaginator.ts @@ -177,21 +177,13 @@ export const useVirtualPaginator = ( 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);