Skip to content

Commit 4973f32

Browse files
authored
docs(react-prefetching): fix spelling (TanStack#6602)
1 parent c697605 commit 4973f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/react/guides/prefetching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ One specific use of prefetching is to avoid Request Waterfalls, for an in-depth
2020

2121
Before jumping into the different specific prefetch patterns, let's look at the `prefetchQuery` and `prefetchInfiniteQuery` functions. First a few basics:
2222

23-
- Out of the box, these functions use the default `staleTime` configured for the `queryClient` to determine wether existing data in the cache is fresh or needs to be fetched again
23+
- Out of the box, these functions use the default `staleTime` configured for the `queryClient` to determine whether existing data in the cache is fresh or needs to be fetched again
2424
- You can also pass a specific `staleTime` like this: `prefetchQuery({ queryKey: ['todos'], queryFn: fn, staleTime: 5000 })`
2525
- This `staleTime` is only used for the prefetch, you still need to set it for any `useQuery` call as well
2626
- If you want to ignore `staleTime` and instead always return data if it's available in the cache, you can use the `ensureQueryData` function.

0 commit comments

Comments
 (0)