Skip to content

Commit

Permalink
fix: prefetchQuery args check (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jun 25, 2020
1 parent 0054f7f commit 4712c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/queryCache.js
Expand Up @@ -221,8 +221,8 @@ export function makeQueryCache({ frozen = isServer, defaultConfig } = {}) {

queryCache.prefetchQuery = async (...args) => {
if (
(isObject(args[1]) && args[1].hasOwnProperty('throwOnError')) ||
args[1].hasOwnProperty('force')
isObject(args[1]) &&
(args[1].hasOwnProperty('throwOnError') || args[1].hasOwnProperty('force'))
) {
args[3] = args[1]
args[1] = undefined
Expand Down

0 comments on commit 4712c0d

Please sign in to comment.