@@ -252,7 +252,7 @@ Removable.destroy
252252fetch (options ? : QueryOptions <TQueryFnData , TError , TData , TQueryKey , never >, fetchOptions ? : FetchOptions <TQueryFnData >): Promise <TData >;
253253` ` `
254254
255- Defined in: [packages/query-core/src/query.ts:705 ](https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L705 )
255+ Defined in: [packages/query-core/src/query.ts:709 ](https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L709 )
256256
257257Fetches the query, i.e. runs its ` queryFn ` (through any configured
258258retryer/behavior) and updates the query's state with the result.
@@ -295,7 +295,7 @@ instead.
295295getObserversCount (): number ;
296296` ` `
297297
298- Defined in: [packages/query-core/src/query.ts:669 ](https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L669 )
298+ Defined in: [packages/query-core/src/query.ts:673 ](https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L673 )
299299
300300Returns the number of observers currently subscribed to this query.
301301
@@ -321,7 +321,7 @@ if (query.getObserversCount() === 0) {
321321invalidate (): void ;
322322```
323323
324- Defined in: [ packages/query-core/src/query.ts:682 ] ( https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L682 )
324+ Defined in: [ packages/query-core/src/query.ts:686 ] ( https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L686 )
325325
326326Marks the query as invalidated, unless it is already invalidated. This
327327updates ` state.isInvalidated ` and notifies observers, but does not by
@@ -406,7 +406,7 @@ either data or an error at least once.
406406isStale (): boolean ;
407407```
408408
409- Defined in: [ packages/query-core/src/query.ts:535 ] ( https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L535 )
409+ Defined in: [ packages/query-core/src/query.ts:539 ] ( https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L539 )
410410
411411Returns ` true ` if the query is stale.
412412- If the query has observers, defers to whether any observer's current
@@ -441,7 +441,7 @@ if (query.isStale()) {
441441isStaleByTime (staleTime ?: number | " static" ): boolean ;
442442```
443443
444- Defined in: [ packages/query-core/src/query.ts:563 ] ( https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L563 )
444+ Defined in: [ packages/query-core/src/query.ts:567 ] ( https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L567 )
445445
446446Returns ` true ` if the query's data is stale relative to the given
447447` staleTime ` (defaults to ` 0 ` ).
@@ -485,7 +485,7 @@ isStatic(): boolean;
485485
486486Defined in: [ packages/query-core/src/query.ts:508] ( https://github.com/TanStack/query/blob/main/packages/query-core/src/query.ts#L508 )
487487
488- Returns ` true ` if the query has at least one observer configured with
488+ Returns ` true ` if the query has data and at least one observer configured with
489489` staleTime: 'static' ` , meaning it is treated as never stale.
490490
491491#### Returns
0 commit comments