Skip to content

Commit

Permalink
docs(useQuery): add more info to description of staleTime field of qu…
Browse files Browse the repository at this point in the history
…ery options (#8448)
  • Loading branch information
gnerkus authored Dec 18, 2024
1 parent 8a0eb6a commit a76ac59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/framework/react/reference/useQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const {
- `staleTime: number | ((query: Query) => number)`
- Optional
- Defaults to `0`
- The time in milliseconds after data is considered stale. This value only applies to the hook it is defined on.
- The time in milliseconds after which data is considered stale. This value only applies to the hook it is defined on.
- If set to `Infinity`, the data will never be considered stale
- If set to a function, the function will be executed with the query to compute a `staleTime`.
- `gcTime: number | Infinity`
Expand Down

0 comments on commit a76ac59

Please sign in to comment.