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/dist/web.development.js +3 -0
- package/dist/web.development.js.map +1 -1
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/lib/Onyx.js +3 -0
- package/package.json +1 -1
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
|
/**
|