peekRecord()
Returns a single locally cached record by ID without making a network request.
Accepts both numeric and string IDs (string ID support added in v2.9.0).
Kind: global function
Returns: CollectionRecord | undefined - The matching record, or undefined if not in the local cache.
| Param | Type | Description |
|---|---|---|
| collectionName | string | The registered collection name. |
| collectionRecordId | number | string | The record ID to look up. |
Example
// Numeric ID
const address = ARM.peekRecord('addresses', 123)Example
// String ID
const address = ARM.peekRecord('addresses', 'JO-26181S4VPU65')Last updated on