You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework/react/guides/caching.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Let's assume we are using the default `gcTime` of **5 minutes** and the default
20
20
- Since no other queries have been made with the `['todos']` query key, this query will show a hard loading state and make a network request to fetch the data.
21
21
- When the network request has completed, the returned data will be cached under the `['todos']` key.
22
22
[//]: #'StaleNote'
23
-
- The hook will mark the data as stale after the configured `staleTime` (defaults to `0`, or immediately).
23
+
- The data will be marked as stale after the configured `staleTime` (defaults to `0`, or immediately).
24
24
[//]: #'StaleNote'
25
25
- A second instance of `useQuery({ queryKey: ['todos'], queryFn: fetchTodos })` mounts elsewhere.
26
26
- Since the cache already has data for the `['todos']` key from the first query, that data is immediately returned from the cache.
0 commit comments