Skip to content

Commit bf7e0b8

Browse files
authored
Update migrating-to-react-query-4.md
Fix a typo in the migration guide
1 parent 8cf612e commit bf7e0b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/pages/guides/migrating-to-react-query-4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ The `cancelRefetch` can be passed to all functions that imperatively fetch a que
4545
- `queryClient.invalidateQueries`
4646
- `queryClient.resetQueries`
4747
- `refetch` returned from `useQuery`
48-
- `fetchNetPage` and `fetchPreviousPage` returned from `useInfiniteQuery`
48+
- `fetchNextPage` and `fetchPreviousPage` returned from `useInfiniteQuery`
4949

50-
Except for `fetchNetxPage` and `fetchPreviousPage`, this flag was defaulting to `false`, which was inconsistent and potentially troublesome: Calling `refetchQueries` or `invalidateQueries` after a mutation might not yield the latest result if a previous slow fetch was already ongoing, because this refetch would have been skipped.
50+
Except for `fetchNextPage` and `fetchPreviousPage`, this flag was defaulting to `false`, which was inconsistent and potentially troublesome: Calling `refetchQueries` or `invalidateQueries` after a mutation might not yield the latest result if a previous slow fetch was already ongoing, because this refetch would have been skipped.
5151

5252
We believe that if a query is actively refetched by some code you write, it should, per default, re-start the fetch.
5353

0 commit comments

Comments
 (0)