Skip to content

Commit 1007495

Browse files
committed
no object flag
1 parent 5e527f3 commit 1007495

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/query-core/src/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,8 @@ export function replaceEqualDeep(a: any, b: any): any {
257257
}
258258

259259
const array = isPlainArray(a) && isPlainArray(b)
260-
const object = !array && isPlainObject(a) && isPlainObject(b)
261260

262-
if (!array && !object) return b
261+
if (!array && !(isPlainObject(a) && isPlainObject(b))) return b
263262

264263
const aItems = array ? a : Object.keys(a)
265264
const aSize = aItems.length

0 commit comments

Comments
 (0)