Skip to content

Commit 51a226e

Browse files
authored
docs: Very minor grammar updates. (TanStack#2485)
1 parent d9467ff commit 51a226e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/pages/guides/caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ Let's assume we are using the default `cacheTime` of **5 minutes** and the defau
2121
- It will then cache the data using `'todos'` and `fetchTodos` as the unique identifiers for that cache.
2222
- The hook will mark itself as stale after the configured `staleTime` (defaults to `0`, or immediately).
2323
- A second instance of `useQuery('todos', fetchTodos)` mounts elsewhere.
24-
- Because this exact data exist in the cache from the first instance of this query, that data is immediately returned from the cache.
24+
- Because this exact data exists in the cache from the first instance of this query, that data is immediately returned from the cache.
2525
- A background refetch is triggered for both queries (but only one request), since a new instance appeared on screen.
2626
- Both instances are updated with the new data if the fetch is successful
2727
- Both instances of the `useQuery('todos', fetchTodos)` query are unmounted and no longer in use.
28-
- Since there are no more active instances to this query, a cache timeout is set using `cacheTime` to delete and garbage collect the query (defaults to **5 minutes**).
28+
- Since there are no more active instances of this query, a cache timeout is set using `cacheTime` to delete and garbage collect the query (defaults to **5 minutes**).
2929
- Before the cache timeout has completed another instance of `useQuery('todos', fetchTodos)` mounts. The query immediately returns the available cached value while the `fetchTodos` function is being run in the background to populate the query with a fresh value.
3030
- The final instance of `useQuery('todos', fetchTodos)` unmounts.
3131
- No more instances of `useQuery('todos', fetchTodos)` appear within **5 minutes**.

0 commit comments

Comments
 (0)