From bd9f09c5d9126764528fa9c8cc39e1a6685a3563 Mon Sep 17 00:00:00 2001 From: Arthur Denner Date: Fri, 14 Apr 2023 15:05:56 +0200 Subject: [PATCH] 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. --- docs/react/guides/migrating-to-v5.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/react/guides/migrating-to-v5.md b/docs/react/guides/migrating-to-v5.md index 453e51aa30..f232aac22e 100644 --- a/docs/react/guides/migrating-to-v5.md +++ b/docs/react/guides/migrating-to-v5.md @@ -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' @@ -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