Skip to content

Commit 6469b02

Browse files
authored
Merge pull request #1331 from boris-petrov/patch-1
Mention some quirks in tracked-computed interop
2 parents d22d164 + bc86ea7 commit 6469b02

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

guides/release/upgrading/current-edition/tracked-properties.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,12 @@ let person = new Person();
202202
person.firstName = 'Tom';
203203
```
204204

205-
And vice-versa, computed properties used in native getters will autotrack and
205+
Note, however, that if you want to use a getter as a dependent key, you will
206+
need to use the [`dependentKeyCompat`](https://api.emberjs.com/ember/release/functions/@ember%2Fobject%2Fcompat/dependentKeyCompat) decorator. This allows you to refactor
207+
existing computed properties into getters without breaking existing code that
208+
observes them.
209+
210+
Vice-versa, computed properties used in native getters will autotrack and
206211
cause the getter to update correctly:
207212

208213
```js

0 commit comments

Comments
 (0)