react-native-onyx 1.0.50 → 1.0.51

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
@@ -1222,6 +1222,9 @@ function update(data) {
1222
1222
  */
1223
1223
  function setMemoryOnlyKeys(keyList) {
1224
1224
  Storage.setMemoryOnlyKeys(keyList);
1225
+
1226
+ // When in memory only mode for certain keys we do not want to ever drop items from the cache as the user will have no way to recover them again via storage.
1227
+ cache.setRecentKeysLimit(Infinity);
1225
1228
  }
1226
1229
 
1227
1230
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",