-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug] Ember Data Relationship Changes Not Triggering did-update Modifier #19189
Comments
Ref PR that I think fixes it in ED for now. |
Ah ok, I was under the impression that there was no new code there (just tests) and everything else had landed in Ember 3.22.0 already. |
I npm linked |
@jrjohnson Now that we have e-d |
Double checked with ED 3.22.0 and added that to my reproduction, issue persists unfortunately. |
Looking at this again, I was surprised this worked before (but obviously you showed it did). I didn't think Overall, I think this is probably a bit outside my wheelhouse to help tackle. |
🐞 Describe the Bug
in Ember 3.19.0 the following usage of did-update would work. It stopped working in 3.20 and continues to not work in 3.22 even with fixes for #19105 and fix in #19164 and with Ember Data 3.22.0.
🔬 Minimal Reproduction
Reproduced in https://github.com/jrjohnson/reproduction-did-update-relationship
Steps:
npm start
did-update
.😕 Actual Behavior
did-update
no longer fires whenever a records are removed from a relationship.🤔 Expected Behavior
did-update
should fire whenever changes are made to the relationships it is provided.🌍 Environment
➕ Additional Context
I've contrived an example using
mapBy
here, but anything that doesn't use thePromiseArray
to track the value will fail (egpost.comments.toArray()
). A workaround is to setPromiseArray
to a local value and then use a getter to transform it, but that doesn't work in more complicated cases where many async relationships need to be combined to render a final value.I know that @snewcomer and @pzuraq have been working on the fixes for this issue so I'll tag them here as well.
The text was updated successfully, but these errors were encountered: