What's the standard pattern for ember-data validations? (invalid state, becameInvalid…)

前端 未结 5 808
囚心锁ツ
囚心锁ツ 2021-01-31 05:59

I\'ve kinda been struggling with this for some time; let\'s see if somebody can help me out.

Although it\'s not explicitly said in the Readme, ember-data provides somewh

5条回答
  •  误落风尘
    2021-01-31 06:06

    this may seem to be an overly simple answer, but why not create a new transaction and add the pre-existing record to it? i'm also trying to figure out an error handling approach.

    also you should probably consider writing this at the store level rather than the adapter level for the sake of re-use.

提交回复
热议问题