11 lines
226 B
TypeScript
11 lines
226 B
TypeScript
export const useFetchWithPaginationMock = (options = {}) => ({
|
|
error: null,
|
|
isEmpty: false,
|
|
isLoadingMore: false,
|
|
isReachingEnd: true,
|
|
loadMore: vi.fn,
|
|
pageCount: 1,
|
|
pageSWRs: [],
|
|
pages: null,
|
|
...options,
|
|
})
|