Skip to content

Commit 3e8b77d

Browse files
committed
docs: migration guide
1 parent 776a63a commit 3e8b77d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/react/guides/migrating-to-v5.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,10 @@ You can adjust the `maxPages` value according to the UX and refetching performan
439439

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

442+
### Infinite Queries can prefetch multiple pages
443+
444+
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.
445+
442446
### Typesafe way to create Query Options
443447

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

0 commit comments

Comments
 (0)