Skip to content

Commit

Permalink
docs: Document staleTime's default (#8561)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexErrant authored Jan 24, 2025
1 parent 322760b commit 12d4542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/query-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export interface QueryObserverOptions<
* The time in milliseconds after data is considered stale.
* 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`.
* Defaults to `0`.
*/
staleTime?: StaleTime<TQueryFnData, TError, TQueryData, TQueryKey>
/**
Expand Down

0 comments on commit 12d4542

Please sign in to comment.