Skip to Content

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

ParamTypeDescription
currentRecordCollectionRecordThe record to remove.

Example

const record = ARM.peekRecord('addresses', 123) ARM.unloadRecord(record) // record is now gone from the collection and any aliases/request hashes
Last updated on