Error Attempted to handle event `loadedData` : Object not updated after deleteRecord

前端 未结 1 896
有刺的猬
有刺的猬 2021-01-28 00:12

Using the last version of ember-js and ember-data, I got an issue when deleting a record.

My route :



        
相关标签:
1条回答
  • 2021-01-28 00:44

    The record is no longer part of the this.transaction, once you commit a transaction a record is moved to the store default transaction. To reflect your deletion action, you need to commit the store.

    contact.deleteRecord()
    App.store.commit();
    
    0 讨论(0)
提交回复
热议问题