-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
queryRecord Regression in Ember Data 2.4 #4219
Comments
Having exactly the same issue as mentioned in #4205 (comment). This only happens using the development build of I'm not exactly sure what causes this issue. Tested with exactly the same server response in both build modes. Maybe the proxy-server of |
Looks like regression has been added in #3864. |
That would explain why it only fails in development. |
The origial intent was for a queryRecord with no response to reject the promise so it would act like a `findRecord` with a 404. This change introduced a regression that broke existing apps so it is going to be reverted. Closes emberjs#4219
This fix has been released as Ember Data |
Issue #3790 allowed for
queryRecord
to work with empty responses, e.g.{ my_model: [] }
. This worked with Ember Data 2.3, but not with Ember Data 2.4. I have a reproduction app available:The repo lives here: https://github.com/jherdman/issue-3790-reproduction. Run the app, hit the index page in your browser. Note the Ember Data 2.4 complains about the empty response, whereas 2.3.3 does not.
The text was updated successfully, but these errors were encountered: