Skip to content

Commit 12d4542

Browse files
authoredJan 24, 2025··
docs: Document staleTime's default (#8561)
1 parent 322760b commit 12d4542

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/query-core/src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ export interface QueryObserverOptions<
305305
* The time in milliseconds after data is considered stale.
306306
* If set to `Infinity`, the data will never be considered stale.
307307
* If set to a function, the function will be executed with the query to compute a `staleTime`.
308+
* Defaults to `0`.
308309
*/
309310
staleTime?: StaleTime<TQueryFnData, TError, TQueryData, TQueryKey>
310311
/**

0 commit comments

Comments
 (0)
Please sign in to comment.