While reviewing Vue pinia state, checkout changes several store fields. Which action fixes it, and which check proves it worked?
Answer options
- A. Implement checkout as an action
- B. Verify the transition preserves invariants
- C. Keep the flag in the component
- D. Place the cart in a Pinia store