Skip to content

Commit 4712c0d

Browse files
authored
fix: prefetchQuery args check (TanStack#631)
1 parent 0054f7f commit 4712c0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/queryCache.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ export function makeQueryCache({ frozen = isServer, defaultConfig } = {}) {
221221

222222
queryCache.prefetchQuery = async (...args) => {
223223
if (
224-
(isObject(args[1]) && args[1].hasOwnProperty('throwOnError')) ||
225-
args[1].hasOwnProperty('force')
224+
isObject(args[1]) &&
225+
(args[1].hasOwnProperty('throwOnError') || args[1].hasOwnProperty('force'))
226226
) {
227227
args[3] = args[1]
228228
args[1] = undefined

0 commit comments

Comments
 (0)