Skip to content

add cacheTime: Infinity to docs #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1830,8 +1830,9 @@ const queryInfo = useQuery({
- `staleTime: Int | Infinity`
- The time in milliseconds that cache data remains fresh. After a successful cache update, that cache data will become stale after this duration.
- If set to `Infinity`, query will never go stale
- `cacheTime: Int`
- `cacheTime: Int | Infinity`
- 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.
- If set to `Infinity`, will disable garbage collection
- `refetchInterval: false | Integer`
- Optional
- If set to a number, all queries will continuously refetch at this frequency in milliseconds
Expand Down Expand Up @@ -1953,8 +1954,9 @@ const {
- `staleTime: Int | Infinity`
- The time in milliseconds that cache data remains fresh. After a successful cache update, that cache data will become stale after this duration.
- If set to `Infinity`, query will never go stale
- `cacheTime: Int`
- `cacheTime: Int | Infinity`
- 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.
- If set to `Infinity`, will disable garbage collection
- `refetchInterval: false | Integer`
- Optional
- If set to a number, all queries will continuously refetch at this frequency in milliseconds
Expand Down Expand Up @@ -2087,8 +2089,9 @@ const {
- `staleTime: Int | Infinity`
- The time in milliseconds that cache data remains fresh. After a successful cache update, that cache data will become stale after this duration.
- If set to `Infinity`, query will never go stale
- `cacheTime: Int`
- `cacheTime: Int | Infinity`
- 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.
- If set to `Infinity`, will disable garbage collection
- `refetchInterval: false | Integer`
- Optional
- If set to a number, all queries will continuously refetch at this frequency in milliseconds
Expand Down