ember-learn / ember-learn/guides-source

autotracking guide POJO/cache example confusion

Open
#1,616 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
HTML
Stars
161
Forks
512
Avg merge
4d 9h
Merged PRs (30d)
4

Description

In https://guides.emberjs.com/release/in-depth-topics/autotracking-in-depth/ I'm not sure what this means:

> Note that we can use the get method to access the cache, and it will still push the _cache tracked property.

Which is at the end of the following:

![image](https://user-images.githubusercontent.com/26158/101855170-e6310600-3b5a-11eb-874a-faff6dfc884b.png)

It might just be me, but I'm not getting a clear message from that last bit. I'm struggling with some ambiguities:

- Which `get` method? The one in the code example, or the one from pre-octane. this.get / this.set / `import { get } from '@ember/object'`
- What does `push` mean? I think this might be the wrong verb. Could it say trigger or activate? It's making me think of pushing something onto a stack/array/cache rather than something to do with tracking. What's the consequence of that happening though? Recomputation and template re-rendering?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.