dimanche 28 août 2016

Attempted to handle event `pushedData` on

I have a basic crud app for blog posts.This error throws up in the console.When I delete a post.But the post gets deleted from the database and from the ember data.I searched for similar questions and none of the answers solved the issue.I use JSONAPIAdapter for the crud actions.

deletePost:function(id){
  var self = this;
  this.get('store').find('post', id)
    .then(post => post.destroyRecord())
      .then(() => self.transitionToRoute('posts'));
}

I use nodejs as backend and mysql as db.After deleting the record I send a response like this res.status(204).end();




Aucun commentaire:

Enregistrer un commentaire