We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f79768 commit e0bb76aCopy full SHA for e0bb76a
packages/@ember/-internals/metal/lib/cached.ts
@@ -84,10 +84,9 @@ import { createCache, getValue } from '@glimmer/validator';
84
the subsequent cache invalidations of the `@cached` properties who were
85
using this `trackedProp`.
86
87
- As a reminder, do not use this piece of code inside a tracked getter,
88
- as the dependency chain could lead to an infinite loop. Mutating an adjacent
89
- property from a getter is not a good practice anyway, even with a caching
90
- mechanism reducing reruns.
+ Remember that setting tracked data should only be done during initialization,
+ or as the result of a user action. Setting tracked data during render
+ (such as in a getter), is not supported.
91
92
@method cached
93
@static
0 commit comments