What can you do with Ember Data Models when in the error state?

前端 未结 4 857
野性不改
野性不改 2020-12-23 12:44

I\'m struggling to understand the workflow that would be used in the following scenario:

A user creates a model, let\'s call it Product. We present them with a form

4条回答
  •  失恋的感觉
    2020-12-23 12:59

    You can trigger a becameValid event on it:

    record.send("becameValid");
    

    This should transition the model to uncommitted state.

提交回复
热议问题