mercredi 6 mai 2015

Add and delete records with ember.js

I am using emberjs for mvc in client side, I'm facing a problem when I would like to delete a record et create another with the same Id of the deleted one.

It shows me this error

Uncaught Error: Assertion Failed: Error: Assertion Failed: The id 2 has already been used with another record of type Client.Componant.

I tried destroyRecord() and store.unloadRecord(...) but it seems like the store still have the record which supposed deleted in his cache or some thing like that.

Any HELP please !! Thanks




Aucun commentaire:

Enregistrer un commentaire