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 c4fcb6f commit a662833Copy full SHA for a662833
packages/toolkit/src/query/core/buildMiddleware/cacheCollection.ts
@@ -11,16 +11,6 @@ import type {
11
12
export type ReferenceCacheCollection = never
13
14
-function isObjectEmpty(obj: Record<any, any>) {
15
- // Apparently a for..in loop is faster than `Object.keys()` here:
16
- // https://stackoverflow.com/a/59787784/62937
17
- for (const k in obj) {
18
- // If there is at least one key, it's not empty
19
- return false
20
- }
21
- return true
22
-}
23
-
24
/**
25
* @example
26
* ```ts
0 commit comments