Skip to content

Commit 76900b8

Browse files
authored
docs: remove confusing sentence (#8411)
1 parent 665e747 commit 76900b8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/reference/QueryClient.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ Its available methods are:
7171

7272
If the query exists and the data is not invalidated or older than the given `staleTime`, then the data from the cache will be returned. Otherwise it will try to fetch the latest data.
7373

74-
> The difference between using `fetchQuery` and `setQueryData` is that `fetchQuery` is async and will ensure that duplicate requests for this query are not created with `useQuery` instances for the same query are rendered while the data is fetching.
75-
7674
```tsx
7775
try {
7876
const data = await queryClient.fetchQuery({ queryKey, queryFn })

0 commit comments

Comments
 (0)