Skip to content

Commit bd9f09c

Browse files
authored
docs: update migrating-to-v5
I think the rocket emoji is causing a visual bug too but since I edited this through GitHub's UI, I couldn't confirm.
1 parent 8578f1e commit bd9f09c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ useInfiniteQuery({
327327

328328
### Manual mode for infinite queries has been removed
329329

330-
Previously, we've allowed to overwrite the `pageParams` that would be returned from `getNextPageParam` or `getPreviousPageParam` by passing a `pageParam` value directly to `fetchNextPage` or `fetchPreviousPage`. This feature didn't work at all with refetches and wasn't widely known or used. This also means that `getNextPagParam` is now required for infinite queries.
330+
Previously, we've allowed to overwrite the `pageParams` that would be returned from `getNextPageParam` or `getPreviousPageParam` by passing a `pageParam` value directly to `fetchNextPage` or `fetchPreviousPage`. This feature didn't work at all with refetches and wasn't widely known or used. This also means that `getNextPageParam` is now required for infinite queries.
331331

332332
[//]: # 'FrameworkBreakingChanges'
333333

@@ -417,7 +417,7 @@ We have a new, simplified way to perform optimistic updates by leveraging the re
417417
}
418418
```
419419

420-
Here, we are only changing how the UI looks when the mutation is running instead of writing data directly to the cache. This works best if we only have one place where we need to show the optimistic update. For more details, have a look at the [optimistic updates documentation](../guides/optimistic-updates.md).
420+
Here, we are only changing how the UI looks when the mutation is running instead of writing data directly to the cache. This works best if we only have one place where we need to show the optimistic update. For more details, have a look at the [optimistic updates documentation](../guides/optimistic-updates).
421421

422422
### Limited, Infinite Queries with new maxPages option
423423

0 commit comments

Comments
 (0)