We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde3d6d commit e0e9ce2Copy full SHA for e0e9ce2
lib/Onyx.ts
@@ -612,10 +612,9 @@ function update(data: OnyxUpdate[]): Promise<void> {
612
return;
613
}
614
615
- const mergePromises = operations.map((operation) => {
616
- return merge(key, operation);
+ operations.forEach((operation) => {
+ promises.push(() => merge(key, operation));
617
});
618
- promises.push(() => mergePromises.at(0) ?? Promise.resolve());
619
620
621
const snapshotPromises = OnyxUtils.updateSnapshots(data, merge);
0 commit comments