Skip to content

Commit f2b4fec

Browse files
committed
Experiment 12
1 parent 9462313 commit f2b4fec

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lib/OnyxUtils.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -867,21 +867,21 @@ function scheduleSubscriberUpdate<TKey extends OnyxKey>(
867867
cache.removeLastAccessedKey(key);
868868
}
869869

870-
let stateMappingKeys = onyxKeyToSubscriptionIDs.get(key) ?? [];
871-
let collectionKey: string | undefined;
872-
try {
873-
collectionKey = getCollectionKey(key);
874-
} catch (e) {
875-
collectionKey = undefined;
876-
}
877-
878-
if (collectionKey) {
879-
stateMappingKeys = [...stateMappingKeys, ...(onyxKeyToSubscriptionIDs.get(collectionKey) ?? [])];
880-
if (stateMappingKeys.length === 0) {
881-
// eslint-disable-next-line no-useless-return
882-
return;
883-
}
884-
}
870+
// let stateMappingKeys = onyxKeyToSubscriptionIDs.get(key) ?? [];
871+
// let collectionKey: string | undefined;
872+
// try {
873+
// collectionKey = getCollectionKey(key);
874+
// } catch (e) {
875+
// collectionKey = undefined;
876+
// }
877+
//
878+
// if (collectionKey) {
879+
// stateMappingKeys = [...stateMappingKeys, ...(onyxKeyToSubscriptionIDs.get(collectionKey) ?? [])];
880+
// if (stateMappingKeys.length === 0) {
881+
// // eslint-disable-next-line no-useless-return
882+
// return;
883+
// }
884+
// }
885885
});
886886
return Promise.all([maybeFlushBatchUpdates(), promise]).then(() => undefined);
887887
}

0 commit comments

Comments
 (0)