Skip to content

Commit d9b2ca7

Browse files
docs: correct refetchOnReconnect default in JSDoc (#10632)
1 parent 87013d5 commit d9b2ca7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/query-core/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export interface QueryObserverOptions<
365365
* If set to `false`, the query will not refetch on reconnect.
366366
* If set to `'always'`, the query will always refetch on reconnect.
367367
* If set to a function, the function will be executed with the latest data and query to compute the value.
368-
* Defaults to the value of `networkOnline` (`true`)
368+
* Defaults to `true` unless `networkMode` is `'always'`.
369369
*/
370370
refetchOnReconnect?:
371371
| boolean

0 commit comments

Comments
 (0)