4 ms·
I’d expect that it’s not cached. But then I would go ahead and call that memoization.
by spyke112 3y ago
I’d expect that it’s not cached. But then I would go ahead and call that memoization.
- Timon3 3y agoThe concept is actually slightly different. With memoization you store a map from inputs to outputs. A computed property doesn't necessarily do this, it just caches the result of the last computation. The important part is that a computed property tracks its dependencies and is automatically re-calculated ONLY when necessary. If it behaves differently, it's not equivalent to the concept of a computed property in Vue.