react-native-onyx 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -751,6 +751,12 @@ function keysChanged(collectionKey, collection) {
751
751
  if (isSubscribedToCollectionKey) {
752
752
  if (_underscore.default.isFunction(subscriber.callback)) {
753
753
  var cachedCollection = getCachedCollection(collectionKey);
754
+
755
+ if (subscriber.waitForCollectionCallback) {
756
+ subscriber.callback(cachedCollection);
757
+ return;
758
+ }
759
+
754
760
  _underscore.default.each(collection, function (data, dataKey) {
755
761
  subscriber.callback(cachedCollection[dataKey], dataKey);
756
762
  });