I tried to upgrade an application from Ember data 0.13 to 0.14 .
I have some
record.get('stateManager').goToState('updated');
statements in my code.
It seems though that the stateManager
property is gone. I found the currentState
property.
How can I manually change / manipulate a record's state in Ember data 0.14?
I found the answer:
record.transitionTo('updated.uncommitted');
does the trick.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.