react-native-onyx 2.0.93 → 2.0.94
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
|
@@ -569,6 +569,10 @@ function updateSnapshots(data) {
|
|
|
569
569
|
updatedData[key] = value || [];
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
+
if (value === null) {
|
|
573
|
+
updatedData[key] = value;
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
572
576
|
const oldValue = updatedData[key] || {};
|
|
573
577
|
const newValue = (0, pick_1.default)(value, Object.keys(snapshotData[key]));
|
|
574
578
|
updatedData = Object.assign(Object.assign({}, updatedData), { [key]: Object.assign(oldValue, newValue) });
|