Addepar / ember-table

https://opensource.addepar.com/ember-table/
Other
1.69k stars 353 forks source link

ember-data:deprecate-array-like if rows is a Record #982

Open rogeraraujo90 opened 1 year ago

rogeraraujo90 commented 1 year ago

This deprecation is being thrown when we use an array of ember-data records as rows:

deprecate.js:131 DEPRECATION: The objectAt method on the class RecordArray is deprecated. Use the native array method at instead. [deprecation id: ember-data:deprecate-array-like] This will be removed in Ember 5.0.

We can convert the record array to a pure JS array to fix the deprecation:

get rows() {
  return this.records.slice();
}

Will ember-table handle this internally in the future?