react-native-onyx 2.0.78 → 2.0.79
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 +3 -1
- package/package.json +1 -1
package/dist/Onyx.js
CHANGED
|
@@ -494,7 +494,9 @@ function updateSnapshots(data) {
|
|
|
494
494
|
if (!snapshotData || !snapshotData[key]) {
|
|
495
495
|
return;
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
const oldValue = updatedData[key] || {};
|
|
498
|
+
const newValue = (0, pick_1.default)(value, Object.keys(snapshotData[key]));
|
|
499
|
+
updatedData = Object.assign(Object.assign({}, updatedData), { [key]: Object.assign(oldValue, newValue) });
|
|
498
500
|
});
|
|
499
501
|
// Skip the update if there's no data to be merged
|
|
500
502
|
if (utils_1.default.isEmptyObject(updatedData)) {
|