guides-source icon indicating copy to clipboard operation
guides-source copied to clipboard

Doc for updating list is somewhat misleading.

Open Aswathprabhu opened this issue 5 years ago • 0 comments

https://guides.emberjs.com/release/components/looping-through-lists/#toc_updating-lists

image

By default, Ember.js will extend the prototypes of native JavaScript objects, right?

So one does not need to convert the messages array to Ember Array here unless they override the EmberENV EXTEND_PROTOTYPES to false which is true by default.

It can be misleading for newbies, they may come to the conclusion that by default for array mutation to be reactive one must convert them to EmberArray.

Aswathprabhu avatar Apr 22 '20 17:04 Aswathprabhu