Update packages/ui/src/components/Table/hooks/useCompletePagination.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
This commit is contained in:
Gustaf Räntilä
2026-02-05 18:14:08 +01:00
committed by GitHub
parent 9f9ba37221
commit 593ff66772
@@ -44,7 +44,7 @@ export function useCompletePagination<T extends TableItem, TFilter>(
const { sort, filter, search } = query;
const [items, setItems] = useState<T[]>([]);
const [isLoading, setIsLoading] = useState(data ? false : true);
const [isLoading, setIsLoading] = useState(!data);
const [error, setError] = useState<Error | undefined>(undefined);
const [loadCount, setLoadCount] = useState(0);