react-native-onyx 3.0.2 → 3.0.4

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 +3 -3
  2. 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",