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/dist/web.development.js +1 -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 +1 -0
- package/package.json +1 -1
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
|
}
|