react-native-onyx 3.0.2 → 3.0.3
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 +3 -3
- package/package.json +1 -1
package/dist/Onyx.js
CHANGED
|
@@ -304,12 +304,12 @@ function merge(key, changes) {
|
|
|
304
304
|
}
|
|
305
305
|
return isCompatible;
|
|
306
306
|
});
|
|
307
|
-
if (!validChanges.length) {
|
|
308
|
-
return Promise.resolve();
|
|
309
|
-
}
|
|
310
307
|
// Clean up the write queue, so we don't apply these changes again.
|
|
311
308
|
delete mergeQueue[key];
|
|
312
309
|
delete mergeQueuePromise[key];
|
|
310
|
+
if (!validChanges.length) {
|
|
311
|
+
return Promise.resolve();
|
|
312
|
+
}
|
|
313
313
|
// If the last change is null, we can just delete the key.
|
|
314
314
|
// Therefore, we don't need to further broadcast and update the value so we can return early.
|
|
315
315
|
if (validChanges.at(-1) === null) {
|