Skip to content

Commit 9d15984

Browse files
ci: apply automated fixes
1 parent e68bf0b commit 9d15984

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/query-core/src/queryObserver.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,10 @@ function shouldFetchOn(
760760
(typeof options)['refetchOnWindowFocus'] &
761761
(typeof options)['refetchOnReconnect'],
762762
) {
763-
if (resolveValueOrFunction(options.enabled, query) !== false && resolveValueOrFunction(options.staleTime, query) !== 'static') {
763+
if (
764+
resolveValueOrFunction(options.enabled, query) !== false &&
765+
resolveValueOrFunction(options.staleTime, query) !== 'static'
766+
) {
764767
const value = resolveValueOrFunction(field, query)
765768

766769
return value === 'always' || (value !== false && isStale(query, options))

0 commit comments

Comments
 (0)