We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d41a4e commit 57c6ce1Copy full SHA for 57c6ce1
packages/query-core/src/queriesObserver.ts
@@ -10,7 +10,8 @@ import type {
10
import type { QueryClient } from './queryClient'
11
12
function difference<T>(array1: Array<T>, array2: Array<T>): Array<T> {
13
- return array1.filter((x) => !array2.includes(x))
+ const excludeSet = new Set(array2)
14
+ return array1.filter((x) => !excludeSet.has(x))
15
}
16
17
function replaceAt<T>(array: Array<T>, index: number, value: T): Array<T> {
0 commit comments