From 599b70cd2390d08ce26ee44174b3f39c6587110c Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 13 Nov 2023 12:37:50 +0100 Subject: refactor(hooks): rewrite usePagination hook * replace `isLoadingInitialData` with `isLoading` & `isRefreshing` * rename `fallbackData` prop to `fallback` * replace `setSize` return with a `loadMore` callback * add tests --- src/utils/hooks/use-pagination/index.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/utils/hooks/use-pagination/index.ts (limited to 'src/utils/hooks/use-pagination/index.ts') diff --git a/src/utils/hooks/use-pagination/index.ts b/src/utils/hooks/use-pagination/index.ts new file mode 100644 index 0000000..a372577 --- /dev/null +++ b/src/utils/hooks/use-pagination/index.ts @@ -0,0 +1 @@ +export * from './use-pagination'; -- cgit v1.2.3