react-native-onyx 2.0.121 → 2.0.122

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 +2 -3
  2. package/package.json +1 -1
package/dist/Onyx.js CHANGED
@@ -538,10 +538,9 @@ function update(data) {
538
538
  promises.push(() => set(key, batchedChanges));
539
539
  return;
540
540
  }
541
- const mergePromises = operations.map((operation) => {
542
- return merge(key, operation);
541
+ operations.forEach((operation) => {
542
+ promises.push(() => merge(key, operation));
543
543
  });
544
- promises.push(() => { var _a; return (_a = mergePromises.at(0)) !== null && _a !== void 0 ? _a : Promise.resolve(); });
545
544
  });
546
545
  const snapshotPromises = OnyxUtils_1.default.updateSnapshots(data, merge);
547
546
  // We need to run the snapshot updates before the other updates so the snapshot data can be updated before the loading state in the snapshot
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "2.0.121",
3
+ "version": "2.0.122",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",