Loving ember-data (just made the switch from RESTless), but I can’t seem to figure out how I can know when a transaction has been fully committed.
I expected transaction.commit to return a promise, which it doesn’t.
The best I can think of so far is to commit (which removes records that aren’t dirty from the transaction), then wait for either a didCreate, didUpdate, didDelete, becameError or becameInvalid is fired on all records.
But getting that working is likely to be a huge yak shaving expedition. Is there a more elegant solution?
Thanks in advance!