Vue · Middle · Question 66 of 75
Does a setup store have $reset() like an option store?
- ✓Correct answer: Not by default - you write your own
$resetaction that restores initial values - 2Yes, it's generated automatically
- 3No store can be reset
Explanation
Pinia can't know the initial state of arbitrary refs in a setup function, so it can't generate $reset.