-
-
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
Ember array not properly updating in template #11701
Comments
Interesting... is this a Glimmer bug? @JarrodCTaylor this happens in 1.13 and not in 1.12, correct? |
I think this is related to #11549. If you change the each to |
@jakesjews I don't think that is the same problem. In this example the |
Now i see it. I was thinking it was the fact that 1.13 only lets you add one item while 1.12 added as many as you clicked. It looks like it doesn't work in 1.12 either unfortunately. |
I have created another bin to exactly duplicate the production issue that I am experiencing with 1.13.X http://emberjs.jsbin.com/qujeba/edit?html,js,output In 1.12.X the if check on the array will update the class resulting in a color change to the |
@JarrodCTaylor I believe you want to bind to |
@mixonic the behavior is inconsistent. I updated the bin to have a
Which is updated. However, the |
I definitely agree they should behave consistently! |
I updated the jsbin here to clarify some of the examples: http://emberjs.jsbin.com/pobepubiba/4/edit?html,css,js,output @mixonic the magic if conditional on length was I think to be consistent with #each else or Ember.isEmpty? |
Will be fixed by #13359. |
In the JSBin click the button and it will add an item to the array. The loop in the template will display the new item but were we have only {{exmapleArray}} will not show the change. If you visit the distraction route when you return you will see the exampleArray has been updated.
http://emberjs.jsbin.com/dewuna/edit?html,js,output
The text was updated successfully, but these errors were encountered: