The docs describe the invalid state as follows:
the record has invalid information and cannot send to the adapter yet.
A user in the app I’m building needs to be able to save
a record again even if it has recently come back from the server as invalid (some properties are not editable by the user and so the record in some cases can’t become valid again via invalid.didSetProperty
).
I’ve added the following to the invalid state and haven’t come across any problems yet, but does anyone know if there are any edge cases where this might present a problem?
willCommit: function(record) { record.transitionTo('inFlight'); },
record.transitionTo('uncommitted')
apparently works as well but is a bit more tedious and seems like it would be more destructive than the first way.