pagination

This commit is contained in:
Alex Holliday committed 2025-10-08 13:44:41 -07:00
1 parent 16b68b3d00
commit 86bb28e239
18 files changed
+327 -47

No files matched your search

+2 -1
View File
@@ -20,7 +20,7 @@ export const useGet = <T,>(
axiosConfig?: AxiosRequestConfig,
swrConfig?: SWRConfiguration<T, Error>
) => {
const { data, error, isLoading, mutate } = useSWR<T>(
const { data, error, isLoading, isValidating, mutate } = useSWR<T>(
url,
(url) => fetcher<T>(url, axiosConfig),
swrConfig
@@ -29,6 +29,7 @@ export const useGet = <T,>(
return {
response: data ?? null,
loading: isLoading,
isValidating,
error: error?.message ?? null,
refetch: mutate,
};