@@ -83,6 +83,7 @@ If the requested key is a collection, it will return an object with all the coll
8383<ul >
8484<li >Storage capacity errors: evicts data and retries the operation</li >
8585<li >Invalid data errors: logs an alert and throws an error</li >
86+ <li >Non-retriable errors: logs an alert and resolves without retrying</li >
8687<li >Other errors: retries the operation</li >
8788</ul >
8889</dd >
@@ -145,9 +146,6 @@ that this internal function allows passing an additional <code>mergeReplaceNullP
145146Any existing collection members not included in the new data will not be removed.
146147Retries on failure.</p >
147148</dd >
148- <dt ><a href =" #getCallbackToStateMapping " >getCallbackToStateMapping()</a ></dt >
149- <dd ><p >Getter - returns the callback to state mapping, useful in test environments.</p >
150- </dd >
151149<dt ><a href =" #clearOnyxUtilsInternals " >clearOnyxUtilsInternals()</a ></dt >
152150<dd ><p >Clear internal variables used in this file, useful in test environments.</p >
153151</dd >
@@ -293,33 +291,12 @@ If the requested key is a collection, it will return an object with all the coll
293291When a collection of keys change, search for any callbacks matching the collection key and trigger those callbacks
294292
295293** Kind** : global function
296-
297- * [ keysChanged()] ( #keysChanged )
298- * [ ~ isSubscribedToCollectionKey] ( #keysChanged..isSubscribedToCollectionKey )
299- * [ ~ isSubscribedToCollectionMemberKey] ( #keysChanged..isSubscribedToCollectionMemberKey )
300-
301- <a name =" keysChanged..isSubscribedToCollectionKey " ></a >
302-
303- ### keysChanged~ isSubscribedToCollectionKey
304- e.g. Onyx.connect({key: ONYXKEYS.COLLECTION.REPORT, callback: ...});
305-
306- ** Kind** : inner constant of [ <code >keysChanged</code >] ( #keysChanged )
307- <a name =" keysChanged..isSubscribedToCollectionMemberKey " ></a >
308-
309- ### keysChanged~ isSubscribedToCollectionMemberKey
310- e.g. Onyx.connect({key: ` ${ONYXKEYS.COLLECTION.REPORT}{reportID} ` , callback: ...});
311-
312- ** Kind** : inner constant of [ <code >keysChanged</code >] ( #keysChanged )
313294<a name =" keyChanged " ></a >
314295
315296## keyChanged()
316297When a key change happens, search for any callbacks matching the key or collection key and trigger those callbacks
317298
318299** Kind** : global function
319- ** Example**
320- ``` js
321- keyChanged (key, value, subscriber => subscriber .initWithStoredValues === false )
322- ```
323300<a name =" sendDataToConnection " ></a >
324301
325302## sendDataToConnection()
@@ -344,6 +321,7 @@ Remove a key from Onyx and update the subscribers
344321Handles storage operation failures based on the error type:
345322- Storage capacity errors: evicts data and retries the operation
346323- Invalid data errors: logs an alert and throws an error
324+ - Non-retriable errors: logs an alert and resolves without retrying
347325- Other errors: retries the operation
348326
349327** Kind** : global function
@@ -522,12 +500,6 @@ Retries on failure.
522500| params.collection | Object collection keyed by individual collection member keys and values |
523501| retryAttempt | retry attempt |
524502
525- <a name =" getCallbackToStateMapping " ></a >
526-
527- ## getCallbackToStateMapping()
528- Getter - returns the callback to state mapping, useful in test environments.
529-
530- ** Kind** : global function
531503<a name =" clearOnyxUtilsInternals " ></a >
532504
533505## clearOnyxUtilsInternals()
0 commit comments