Put in order · Vue.js course · Module 4: Computed & Watch
Steps of computed property calculation
Arrange the stages of computed property operation from data change to result:
Items to put in order
- The new value is cached and returned
- Vue detects the change and marks the computed as 'dirty'
- The reactive dependency value changes
- When the computed is accessed, the getter is called again
You can check the correct answer by solving this task in the CodeWorlds game.