-
-
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
HasManyReference property _isLoaded return false when it had been loaded once (with empty result) #4845
Comments
Seems like a bug. What do you think @runspired / @igorT? Should |
seems like a bug |
Actually @twawszczak now that I'm digging into this I'm having trouble reproducing the issue. I created a test for the issue in pr #4891 but its currently passing on the master branch. Would you mind taking a look at my test and let me know if I'm missing something. Thanks |
@bmac i suppose you should assert _isLoaded property value, am i right? This is a problem in this issue. |
I've updated the test to use |
@bmac I have loading data from server via JSONAPiAdapter, I don't know how to reproduce it in test suite. :( |
Would you be able to reproduce it using this Ember Twiddle? |
I have an issue with HasManyReference property "_isLoaded". It should return true when relationship had been loaded at least one time, right? But it returns false, when last relationship request returned empty array. (works correct when last request returned more then 0 elements)
https://github.com/emberjs/data/blob/v2.11.0/addon/-private/system/references/has-many.js#L111
The text was updated successfully, but these errors were encountered: