@ember-data/record-data RecordData.isEmpty
implementation should consider isNew in calculation
#7844
Labels
🏷️ bug
This PR primarily fixes a reported issue
The implementation is here: Source
This leads to a bug whereby
store.createRecord('user')
(note the lack of any second arg) can incorrectly trigger fetches for relationships with the new user record because the internals considerempty
records to be fetchable. It also means that in more recent ember-data versions records begin their lifeisEmpty
if created in this way, as we now pull this state from the RecordData instance.The text was updated successfully, but these errors were encountered: