createRecord Model committed to store before promise resolves


#1

I’m currently trying to build out a custom Adapter and Serializer that can understand the response format used by SalesForce. I have find, findAll, createRecord, and deleteRecord working, but I’m encountering some strange behavior on createRecord as it pertains to when the record is committed to the store.

Simply put, the object sent to createRecord is committed to the store before the promise actually resolves. Is this expected? For some reason I was expecting that record to not be committed until after the promise returned.