react-native-onyx 2.0.49 → 2.0.50
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/Onyx.js +4 -0
- package/package.json +1 -1
package/dist/Onyx.js
CHANGED
|
@@ -576,6 +576,10 @@ function updateSnapshots(data) {
|
|
|
576
576
|
}
|
|
577
577
|
updatedData = Object.assign(Object.assign({}, updatedData), { [key]: (0, pick_1.default)(value, Object.keys(snapshotData[key])) });
|
|
578
578
|
});
|
|
579
|
+
// Skip the update if there's no data to be merged
|
|
580
|
+
if (utils_1.default.isEmptyObject(updatedData)) {
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
579
583
|
promises.push(() => merge(snapshotKey, { data: updatedData }));
|
|
580
584
|
});
|
|
581
585
|
return Promise.all(promises.map((p) => p()));
|