react-native-onyx 1.0.40 → 1.0.41

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/lib/Onyx.js CHANGED
@@ -1100,6 +1100,7 @@ function clear(keysToPreserve = []) {
1100
1100
  const defaultKeyValuePairs = _.pairs(_.omit(defaultKeyStates, keysToPreserve));
1101
1101
 
1102
1102
  // Remove only the items that we want cleared from storage, and reset others to default
1103
+ _.each(keysToBeClearedFromStorage, key => cache.drop(key));
1103
1104
  return Storage.removeItems(keysToBeClearedFromStorage).then(() => Storage.multiSet(defaultKeyValuePairs));
1104
1105
  });
1105
1106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",