Skip to content

Commit

Permalink
docs: usePaginatedQuery was removed in v3, not just deprecated (#4279)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbiewener authored Oct 7, 2022
1 parent 47a1bd1 commit d6dacbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/migrating-to-react-query-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ useInfiniteQuery(['posts'], (_key, pageParam = 0) => fetchPosts(pageParam))
useInfiniteQuery(['posts'], ({ pageParam = 0 }) => fetchPosts(pageParam))
```

### usePaginatedQuery() has been deprecated in favor of the `keepPreviousData` option
### usePaginatedQuery() has been removed in favor of the `keepPreviousData` option

The new `keepPreviousData` options is available for both `useQuery` and `useInfiniteQuery` and will have the same "lagging" effect on your data:

Expand Down

0 comments on commit d6dacbf

Please sign in to comment.