Skip to content

Commit

Permalink
docs: migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Jun 17, 2023
1 parent 776a63a commit 3e8b77d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/react/guides/migrating-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ You can adjust the `maxPages` value according to the UX and refetching performan

Note that the infinite list must be bi-directional, which requires both `getNextPageParam` and `getPreviousPageParam` to be defined.

### Infinite Queries can prefetch multiple pages

Infinite Queries can be prefetched like regular Queries. Per default, only the first page of the Query will be prefetched and will be stored under the given QueryKey. If you want to prefetch more than one page, you can use the `pages` option. Read the [prefetching guide](../guides/prefetching) for more information.

### Typesafe way to create Query Options

See the [TypeScript docs](../typescript#typing-query-options) for more details.
Expand Down

0 comments on commit 3e8b77d

Please sign in to comment.