Skip to content

Commit

Permalink
Merge pull request #14 from sushidev-team/usePaginatedQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoud authored Mar 18, 2024
2 parents a16a38a + 3728b48 commit b15088a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ When you want to paginate a query simply use the `usePaginatedQuery` hook instea
{
data: Data[];
currentPage: number | null; // currentPage is null until the first query returned data
hasMorePages: boolean;
fetchNextPage: () => void;
fetchPreviousPage: () => void;
fetchSpecificPage: (page: number) => void;
Expand All @@ -176,7 +175,7 @@ Also a quick note on the returned data. The data is always an array which simply
#### Example

```tsx
const [{ fetching, stale, data, hasMorePages, fetchNextPage }] = usePaginatedQuery({
const [{ fetching, stale, data, fetchNextPage }] = usePaginatedQuery({
query: GetEntitiesDocument,
variables,
});
Expand Down

0 comments on commit b15088a

Please sign in to comment.