unloadRecord()
Removes a record from all local data stores: its collection, any aliases, and any request hashes that reference it.
This is called automatically after a successful destroyRecord. You can also call
it manually to remove a record from local state without hitting the server.
Kind: global function
| Param | Type | Description |
|---|---|---|
| currentRecord | CollectionRecord | The record to remove. |
Example
const record = ARM.peekRecord('addresses', 123)
ARM.unloadRecord(record)
// record is now gone from the collection and any aliases/request hashesLast updated on