Skip to content

Commit 8081ff6

Browse files
ci: apply automated fixes
1 parent 1785a4d commit 8081ff6

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

packages/query-core/src/query.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ export class Query<
271271

272272
isActive(): boolean {
273273
return this.observers.some(
274-
(observer) => resolveQueryBoolean(observer.options.enabled, this) !== false,
274+
(observer) =>
275+
resolveQueryBoolean(observer.options.enabled, this) !== false,
275276
)
276277
}
277278

packages/query-core/src/queryObserver.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,10 @@ function shouldLoadOnMount(
752752
return (
753753
resolveQueryBoolean(options.enabled, query) !== false &&
754754
query.state.data === undefined &&
755-
!(query.state.status === 'error' &&
756-
resolveQueryBoolean(options.retryOnMount, query) === false)
755+
!(
756+
query.state.status === 'error' &&
757+
resolveQueryBoolean(options.retryOnMount, query) === false
758+
)
757759
)
758760
}
759761

packages/query-core/src/types.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,7 @@ export interface QueryObserverOptions<
394394
* If set to a function, the function will be executed with the query to compute the value.
395395
* Defaults to `true`.
396396
*/
397-
retryOnMount?: QueryBooleanOption<
398-
TQueryFnData,
399-
TError,
400-
TQueryData,
401-
TQueryKey
402-
>
397+
retryOnMount?: QueryBooleanOption<TQueryFnData, TError, TQueryData, TQueryKey>
403398
/**
404399
* If set, the component will only re-render if any of the listed properties change.
405400
* When set to `['data', 'error']`, the component will only re-render when the `data` or `error` properties change.

0 commit comments

Comments
 (0)