You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been in the middle of updating our ember app from 3.12 to 3.24 now that this beta is available, and for the most part it's been smooth sailing! I've run into one issue though, which is that updates to a fragment array model don't seem to trigger a change, or at least one recognized by ember-modifiers' did-update modifier.
then this.validateHeaders only runs when the headers property changes length (i.e. header fragments are added or removed, but not modified).
It's possible that this is intended behavior, and that a custom computed property needs to be set up to track this (which is what I did, below) but it feels like this should work.
@mike-engel I'm unsure of the correct behaviour here but out of curiosity do you know what happens with regular Ember Data hasMany relationships? Do they trigger did-update to run?
I hit a very similar sounding issue when landing the refactor of @ember-data/model to native classes. It resulted in one failure in this library for array changes not dirtying the parent owner. After investigating it seemed likely the issue was with the array code. I'll try to find some time soon to poke at a fix here.
I've been in the middle of updating our ember app from 3.12 to 3.24 now that this beta is available, and for the most part it's been smooth sailing! I've run into one issue though, which is that updates to a fragment array model don't seem to trigger a change, or at least one recognized by
ember-modifiers
'did-update
modifier.Here's an example.
Then, if I have a glimmer component with a
did-update
modifier like thisthen
this.validateHeaders
only runs when theheaders
property changes length (i.e.header
fragments are added or removed, but not modified).It's possible that this is intended behavior, and that a custom computed property needs to be set up to track this (which is what I did, below) but it feels like this should work.
Thanks!
The text was updated successfully, but these errors were encountered: