react-native-onyx 1.0.32 → 1.0.33

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.
@@ -856,8 +856,7 @@ function notifyCollectionSubscribersOnNextTick(key, value) {
856
856
  * @return {Promise}
857
857
  */
858
858
  function remove(key) {
859
- // Cache the fact that the value was removed
860
- _OnyxCache.default.set(key, null);
859
+ _OnyxCache.default.drop(key);
861
860
  notifySubscribersOnNextTick(key, null);
862
861
  return _storage.default.removeItem(key);
863
862
  }
@@ -904,8 +903,9 @@ function evictStorageAndRetry(error, onyxMethod) {for (var _len = arguments.leng
904
903
  * @returns {Promise}
905
904
  */
906
905
  function set(key, value) {
907
- // Logging properties only since values could be sensitive things we don't want to log
908
- Logger.logInfo("set() called for key: " + key + (_underscore.default.isObject(value) ? " properties: " + _underscore.default.keys(value).join(',') : ''));
906
+ if (_underscore.default.isNull(value)) {
907
+ return remove(key);
908
+ }
909
909
 
910
910
  // eslint-disable-next-line no-use-before-define
911
911
  if (hasPendingMergeForKey(key)) {
@@ -1351,6 +1351,7 @@ var Onyx = {
1351
1351
  mergeCollection: mergeCollection,
1352
1352
  update: update,
1353
1353
  clear: clear,
1354
+ getAllKeys: getAllKeys,
1354
1355
  init: init,
1355
1356
  registerLogger: Logger.registerLogger,
1356
1357
  addToEvictionBlockList: addToEvictionBlockList,
@@ -1513,6 +1514,8 @@ OnyxCache = /*#__PURE__*/function () {
1513
1514
  */ }, { key: "drop", value:
1514
1515
  function drop(key) {
1515
1516
  delete this.storageMap[key];
1517
+ this.storageKeys.delete(key);
1518
+ this.recentKeys.delete(key);
1516
1519
  }
1517
1520
 
1518
1521
  /**