Vue · Senior · Question 75 of 75
What is a safe migration strategy from Vuex to Pinia in a large app?
- ✓Correct answer: Migrate module by module; both libraries can coexist while consumers are moved to Pinia stores
- 2Rewrite all modules at once
- 3Pinia can't coexist with Vuex
Explanation
Pinia has no mutations or nested modules, so each Vuex module becomes a separate store with actions.