Skip to content

Commit 17fd83c

Browse files
committed
Address comments
1 parent c16605d commit 17fd83c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/OnyxCache.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ class OnyxCache {
483483
const needsPrefixCheck = !memberKeys;
484484

485485
for (const key of keysToScan) {
486+
// When using the fallback path (scanning all storageKeys instead of the indexed
487+
// forward lookup), skip keys that don't belong to this collection.
486488
if (needsPrefixCheck && OnyxKeys.getCollectionKey(key) !== collectionKey) {
487489
continue;
488490
}

0 commit comments

Comments
 (0)