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.
- package/dist/Onyx.js +2 -3
- 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
|
-
|
|
542
|
-
|
|
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
|