Skip to content

Commit 1c19266

Browse files
committed
Experiment 9
1 parent 67af56f commit 1c19266

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/OnyxUtils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,9 @@ function scheduleSubscriberUpdate<TKey extends OnyxKey>(
860860
isProcessingCollectionUpdate = false,
861861
): Promise<void> {
862862
const promise = Promise.resolve().then(() => keyChanged(key, value, canUpdateSubscriber, true, isProcessingCollectionUpdate));
863-
// batchUpdates(() => keyChanged(key, value, canUpdateSubscriber, false, isProcessingCollectionUpdate));
863+
batchUpdates(() => {
864+
/* empty */
865+
});
864866
return Promise.all([maybeFlushBatchUpdates(), promise]).then(() => undefined);
865867
}
866868

@@ -875,7 +877,9 @@ function scheduleNotifyCollectionSubscribers<TKey extends OnyxKey>(
875877
previousValue?: OnyxCollection<KeyValueMapping[TKey]>,
876878
): Promise<void> {
877879
const promise = Promise.resolve().then(() => keysChanged(key, value, previousValue, true));
878-
// batchUpdates(() => keysChanged(key, value, previousValue, false));
880+
batchUpdates(() => {
881+
/* empty */
882+
});
879883
return Promise.all([maybeFlushBatchUpdates(), promise]).then(() => undefined);
880884
}
881885

0 commit comments

Comments
 (0)