Vue · Junior · Question 71 of 75
What is a getter in a Pinia store?
- ✓Correct answer: A cached derived value - the store's equivalent of
computed - 2A function that loads data from the server
- 3A method that returns the whole state
Explanation
In setup stores getters are simply computed() values. Put async work and mutations into actions.