You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dd><p>Merge user provided default key value pairs.</p>
@@ -187,12 +174,6 @@ Getter - returns the default key states.
187
174
## getDeferredInitTask()
188
175
Getter - returns the deffered init task.
189
176
190
-
**Kind**: global function
191
-
<aname="getEvictionBlocklist"></a>
192
-
193
-
## getEvictionBlocklist()
194
-
Getter - returns the eviction block list.
195
-
196
177
**Kind**: global function
197
178
<aname="getSkippableCollectionMemberIDs"></a>
198
179
@@ -217,7 +198,7 @@ Sets the initial values for the Onyx store
217
198
| --- | --- |
218
199
| keys |`ONYXKEYS` constants object from Onyx.init() |
219
200
| initialKeyStates | initial data to set when `init()` and `clear()` are called |
220
-
| evictableKeys | This is an array of keys (individual or collection patterns) that are eligible for automatic removal when storage limits are reached. |
201
+
| evictableKeys | This is an array of keys (individual or collection patterns) that when provided to Onyx are flagged as "safe" for removal. |
221
202
222
203
<aname="maybeFlushBatchUpdates"></a>
223
204
@@ -313,12 +294,6 @@ or throws an Error if the key is not a collection one.
313
294
Checks to see if a provided key is the exact configured key of our connected subscriber
314
295
or if the provided key is a collection member key (in case our configured key is a "collection key")
315
296
316
-
**Kind**: global function
317
-
<aname="isEvictableKey"></a>
318
-
319
-
## isEvictableKey()
320
-
Checks to see if this key has been flagged as safe for removal.
321
-
322
297
**Kind**: global function
323
298
<aname="getCollectionKey"></a>
324
299
@@ -344,29 +319,6 @@ For example:
344
319
Tries to get a value from the cache. If the value is not present in cache it will return the default value or undefined.
345
320
If the requested key is a collection, it will return an object with all the collection members.
346
321
347
-
**Kind**: global function
348
-
<aname="removeLastAccessedKey"></a>
349
-
350
-
## removeLastAccessedKey()
351
-
Remove a key from the recently accessed key list.
352
-
353
-
**Kind**: global function
354
-
<aname="addLastAccessedKey"></a>
355
-
356
-
## addLastAccessedKey()
357
-
Add a key to the list of recently accessed keys. The least
358
-
recently accessed key should be at the head and the most
@@ -166,6 +166,7 @@ Merges a collection based on their keys
166
166
| --- | --- |
167
167
| collectionKey | e.g. `ONYXKEYS.COLLECTION.REPORT`|
168
168
| collection | Object collection keyed by individual collection member keys and values |
169
+
| mergeReplaceNullPatches | Record where the key is a collection member key and the value is a list of tuples that we'll use to replace the nested objects of that collection member record with something else. |
it('should completely replace the target object with its source when the source has the "ONYX_INTERNALS__REPLACE_OBJECT_MARK" flag and "shouldReplaceMarkedObjects" is true',()=>{
141
+
it('should completely replace the target object with its source when the source has the "ONYX_INTERNALS__REPLACE_OBJECT_MARK" flag and "objectRemovalMode" is set to "replace"',()=>{
0 commit comments