jeudi 29 juin 2023

ember data 3.28 rollback after save

Is there any way to rollback model after model.save or model.destroyRecord failed

try {
  await testModel.save();
} catch (error) {
  // How to rollback testModel here?
}



Aucun commentaire:

Enregistrer un commentaire