cardstack / ember-data-fastboot

Serializes and restores the ember-data store for fastboot
MIT License
52 stars 24 forks source link

calling createRecord in fastboot fails #8

Closed arschmitz closed 7 years ago

arschmitz commented 7 years ago

If in fastboot you call createRecord it will cause an error when the serialized data is pushed into the store in the browser. the record from the call to createRecord has no id and so by passing the serialized object to push you get the error 'Assertion Failed: you must pass an id for xxx when calling push'

ef4 commented 7 years ago

Thanks for this bug report.

I think to fix this we will need to serialize the store itself at a lower level than we do now.

krasnoukhov commented 7 years ago

13 seems to work just fine

sarjanen commented 7 years ago

Can we get this merged?

ef4 commented 7 years ago

I merged and released #13 as 0.1.1.