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.
- package/dist/web.development.js +6 -0
- package/dist/web.development.js.map +1 -1
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/lib/Onyx.js +6 -0
- package/package.json +1 -1
package/dist/web.development.js
CHANGED
|
@@ -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
|
});
|