In order to tell Ember a value might change, we need to mark it as trackable. Trackable values are values that:
- Can change over their component’s lifetime and
- Should cause Ember to rerender if and when they change
We can do this by marking the field with the
Caching a getter value
@cached decorator can be used on getters in order to cache the
return value of the getter.
This method adds an extra overhead to each memoized getter, therefore caching the values should not be the default strategy, but used in last resort.