Closed chriskrycho closed 2 years ago
@chriskrycho I maybe missing something, but seem like it's already working as expected see https://github.com/tracked-tools/tracked-built-ins/blob/master/addon/src/-private/array.ts#L77
🤣 you are 100% correct; this was just me completely missing it. Thank you.
Although this does not have anything to do with auto-tracking per se, for
TrackedArray
to be a complete substitute forArray
, it should be possible to simply replaceArray.from
withTrackedArray.from
and have the expected behavior—rather than needing to donew TrackedArray(Array.from(someIterable))
.