Skip to content

Commit

Permalink
docs: update migrating-to-v5 (#5274)
Browse files Browse the repository at this point in the history
I think the rocket emoji is causing a visual bug too but since I edited this through GitHub's UI, I couldn't confirm.
  • Loading branch information
arthurdenner authored Apr 15, 2023
1 parent 8578f1e commit 67a563c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/react/guides/migrating-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ useInfiniteQuery({

### Manual mode for infinite queries has been removed

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.
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.

[//]: # 'FrameworkBreakingChanges'
Expand Down Expand Up @@ -417,7 +417,7 @@ We have a new, simplified way to perform optimistic updates by leveraging the re
}
```
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).
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).
### Limited, Infinite Queries with new maxPages option
Expand Down

0 comments on commit 67a563c

Please sign in to comment.