Skip to content

Commit c03881a

Browse files
committed
chore(query): replace resolveStaleTime with resolveValueOrFunction
1 parent 427c977 commit c03881a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/query-core/src/query.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import {
33
noop,
44
replaceData,
55
resolveValueOrFunction,
6-
resolveEnabled,
7-
resolveStaleTime,
86
skipToken,
97
timeUntilStale,
108
} from './utils'
@@ -277,7 +275,7 @@ export class Query<
277275
if (this.getObserversCount() > 0) {
278276
return this.observers.some(
279277
(observer) =>
280-
resolveStaleTime(observer.options.staleTime, this) === 'static',
278+
resolveValueOrFunction(observer.options.staleTime, this) === 'static',
281279
)
282280
}
283281

0 commit comments

Comments
 (0)