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.
Files changed (2) hide show
  1. package/dist/Onyx.js +4 -0
  2. 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) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "2.0.93",
3
+ "version": "2.0.94",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",