Skip to content

Commit 534bcd8

Browse files
committed
Add note about Computed Properties
1 parent a4e7607 commit 534bcd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/ember/v6/deprecate-ember-array-foundations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ displayId: array.foundations
77

88
The foundational APIs of `@ember/array`, including the `A()` function and the core mixins (`EmberArray`, `MutableArray`, `NativeArray`), are deprecated. These were used to create and extend arrays with Ember's observability. The modern approach is to use native JavaScript arrays, and `TrackedArray` from `tracked-built-ins` when reactivity is needed.
99

10+
> Warning: If you have Computed Properties that rely on EmberArray values, you may find their behavior affected when you migrate. Please consider migrating these Computed Properties to use native getters before beginning the EmberArray migration.
11+
1012
### `A()` Function and Core Mixins
1113

1214
The `A()` function would wrap a native array, making it an `EmberArray`. The `EmberArray` and `MutableArray` mixins could be used to build custom array-like classes.

0 commit comments

Comments
 (0)