Skip to content

Commit eff423c

Browse files
authored
add cacheTime: Infinity to docs
1 parent b810686 commit eff423c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,8 +1830,9 @@ const queryInfo = useQuery({
18301830
- `staleTime: Int | Infinity`
18311831
- The time in milliseconds that cache data remains fresh. After a successful cache update, that cache data will become stale after this duration.
18321832
- If set to `Infinity`, query will never go stale
1833-
- `cacheTime: Int`
1833+
- `cacheTime: Int | Infinity`
18341834
- The time in milliseconds that unused/inactive cache data remains in memory. When a query's cache becomes unused or inactive, that cache data will be garbage collected after this duration.
1835+
- If set to `Infinity`, will disable garbage collection
18351836
- `refetchInterval: false | Integer`
18361837
- Optional
18371838
- If set to a number, all queries will continuously refetch at this frequency in milliseconds
@@ -1953,8 +1954,9 @@ const {
19531954
- `staleTime: Int | Infinity`
19541955
- The time in milliseconds that cache data remains fresh. After a successful cache update, that cache data will become stale after this duration.
19551956
- If set to `Infinity`, query will never go stale
1956-
- `cacheTime: Int`
1957+
- `cacheTime: Int | Infinity`
19571958
- The time in milliseconds that unused/inactive cache data remains in memory. When a query's cache becomes unused or inactive, that cache data will be garbage collected after this duration.
1959+
- If set to `Infinity`, will disable garbage collection
19581960
- `refetchInterval: false | Integer`
19591961
- Optional
19601962
- If set to a number, all queries will continuously refetch at this frequency in milliseconds
@@ -2087,8 +2089,9 @@ const {
20872089
- `staleTime: Int | Infinity`
20882090
- The time in milliseconds that cache data remains fresh. After a successful cache update, that cache data will become stale after this duration.
20892091
- If set to `Infinity`, query will never go stale
2090-
- `cacheTime: Int`
2092+
- `cacheTime: Int | Infinity`
20912093
- The time in milliseconds that unused/inactive cache data remains in memory. When a query's cache becomes unused or inactive, that cache data will be garbage collected after this duration.
2094+
- If set to `Infinity`, will disable garbage collection
20922095
- `refetchInterval: false | Integer`
20932096
- Optional
20942097
- If set to a number, all queries will continuously refetch at this frequency in milliseconds

0 commit comments

Comments
 (0)