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