react-native-onyx 3.0.151 → 3.0.153
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.
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const errors_1 = require("../errors");
|
|
4
|
+
function emptyOnyxValue() {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
4
7
|
const provider = {
|
|
5
8
|
store: undefined,
|
|
6
9
|
/**
|
|
@@ -21,7 +24,7 @@ const provider = {
|
|
|
21
24
|
* Get the value of a given key or return `null` if it's not available in memory
|
|
22
25
|
*/
|
|
23
26
|
getItem(_key) {
|
|
24
|
-
return Promise.resolve(
|
|
27
|
+
return Promise.resolve(emptyOnyxValue(_key));
|
|
25
28
|
},
|
|
26
29
|
/**
|
|
27
30
|
* Get multiple key-value pairs for the give array of keys in a batch.
|