emberjs / data

WarpDrive is a lightweight data library for web apps — universal, typed, reactive, and ready to scale.
https://api.emberjs.com/ember-data/release
MIT License
3.04k stars 1.33k forks source link

3.28: Awaiting async relationships does not work anymore #7684

Closed Turbo87 closed 2 years ago

Turbo87 commented 3 years ago

Reproduction

Description

Just like in previous Ember Data releases I expected to be able to await async relationships to be able to wait until the content has loaded before continuing, but this appears to have broken with v3.28 by resolving before the network request has resolved.

Versions

Run the following command and paste the output below: yarn list ember-source && yarn list ember-cli && yarn list --pattern ember-data.

❯ yarn list ember-source && yarn list ember-cli && yarn list --pattern ember-data
yarn list v1.22.4
warning Filtering by arguments is deprecated. Please use the pattern option instead.
└─ ember-source@3.28.0
✨  Done in 1.21s.
yarn list v1.22.4
warning Filtering by arguments is deprecated. Please use the pattern option instead.
└─ ember-cli@3.28.0
✨  Done in 0.90s.
yarn list v1.22.4
├─ @ember-data/adapter@3.28.0
├─ @ember-data/canary-features@3.28.0
├─ @ember-data/debug@3.28.0
├─ @ember-data/model@3.28.0
├─ @ember-data/private-build-infra@3.28.0
├─ @ember-data/record-data@3.28.0
├─ @ember-data/rfc395-data@0.0.4
├─ @ember-data/serializer@3.28.0
├─ @ember-data/store@3.28.0
├─ babel-plugin-ember-data-packages-polyfill@0.1.2
└─ ember-data@3.28.0
✨  Done in 0.90s.
igorT commented 3 years ago

Thanks for the detailed issue report, it seems like a few people have run into this, we are working on a fix in https://github.com/emberjs/data/pull/7691