Skip to content

Commit

Permalink
feat: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Miron committed Mar 18, 2024
1 parent 586f144 commit 3728b48
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 3728b48

Please sign in to comment.