react-native-onyx 1.0.17 → 1.0.19
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/API.md +12 -0
- package/dist/web.development.js +292 -168
- 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 +209 -108
- package/lib/OnyxCache.js +4 -2
- package/lib/fastMerge.js +66 -0
- package/lib/storage/providers/LocalForage.js +5 -2
- package/package.json +1 -1
- package/lib/mergeWithCustomized.js +0 -26
package/API.md
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
## Functions
|
|
6
6
|
|
|
7
7
|
<dl>
|
|
8
|
+
<dt><a href="#isCollectionMemberKey">isCollectionMemberKey(collectionKey, key)</a> ⇒ <code>Boolean</code></dt>
|
|
9
|
+
<dd></dd>
|
|
8
10
|
<dt><a href="#connect">connect(mapping)</a> ⇒ <code>Number</code></dt>
|
|
9
11
|
<dd><p>Subscribes a react component's state directly to a store key</p>
|
|
10
12
|
</dd>
|
|
@@ -60,6 +62,16 @@ value will be saved to storage after the default value.</p>
|
|
|
60
62
|
</dd>
|
|
61
63
|
</dl>
|
|
62
64
|
|
|
65
|
+
<a name="isCollectionMemberKey"></a>
|
|
66
|
+
|
|
67
|
+
## isCollectionMemberKey(collectionKey, key) ⇒ <code>Boolean</code>
|
|
68
|
+
**Kind**: global function
|
|
69
|
+
|
|
70
|
+
| Param | Type |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| collectionKey | <code>String</code> |
|
|
73
|
+
| key | <code>String</code> |
|
|
74
|
+
|
|
63
75
|
<a name="connect"></a>
|
|
64
76
|
|
|
65
77
|
## connect(mapping) ⇒ <code>Number</code>
|