peekAll()
Returns all locally cached records in a collection without making a network request.
Kind: global function
Returns: Array.<CollectionRecord> | undefined - The array of cached records, or undefined
if the collection has not been initialized.
| Param | Type | Description |
|---|---|---|
| collectionName | string | The registered collection name. |
Example
const addresses = ARM.peekAll('addresses')
// Returns whatever is currently in the local collection (may be empty)Last updated on