Skip to content

Commit 3dad59c

Browse files
committed
docs: notes about vuex
1 parent ec9cdc4 commit 3dad59c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ Pinia is the most similar English pronunciation of the word _pineapple_ in Spani
9696

9797
A few notes about the project and possible questions:
9898

99-
**Q**: _Does this replace Vuex, is it its successor?_
99+
**Q**: _Is Pinia the successor of Vuex?_
100100

101-
**A**: No, or at least that's not the main intention
101+
**A**: [Yes](https://vuejs.org/guide/scaling-up/state-management.html#pinia)
102102

103103
**Q**: _What about dynamic modules?_
104104

packages/docs/introduction.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ export const todos = defineStore('todos', {
160160

161161
## Comparison with Vuex
162162

163-
Pinia tries to stay as close to Vuex's philosophy as possible. It was designed to test out a proposal for the next iteration of Vuex and it was a success as we currently have an open RFC for Vuex 5 with [an API very similar](https://github.com/vuejs/rfcs/discussions/270) to the one used by Pinia. Note that I (Eduardo), the author of Pinia, am part of the Vue.js Core Team and actively participate in the design of APIs like the Router and Vuex. My personal intention with this project is to redesign the experience of using a global Store while keeping the approachable philosophy of Vue. I keep the API of Pinia as close as Vuex as it keeps moving forward to make it easy for people to migrate to Vuex or to even fusion both projects (under Vuex) in the future.
163+
Pinia started out as an exploration of what the next iteration of Vuex could look like, incorporating many ideas from core team discussions for Vuex 5. Eventually, we realized that Pinia already implements most of what we wanted in Vuex 5, and decided to make it the new recommendation instead.
164+
165+
Compared to Vuex, Pinia provides a simpler API with less ceremony, offers Composition-API-style APIs, and most importantly, has solid type inference support when used with TypeScript.
164166

165167
### RFCs
166168

0 commit comments

Comments
 (0)