ktsn / vuex-smart-module

Type safe Vuex module with powerful module features
MIT License
381 stars 19 forks source link

Rebase vuex-smart-module on vuex 5? #527

Open nicolidin opened 2 years ago

nicolidin commented 2 years ago

Hey @ktsn

Vuex5 coming out soon! What do you think of that? It is based on Pinia that is not class based, and thus it can't allow splitting and move the logic in specific classes (for action, states etc.), these store "parts" can't be declared outside and then composed in a store instance. Furthermore, Pinia does not have nested Store. However, Pinia have some good too, especially about the return type of action, I'm almost sure it does not have the promise type and thus allows to return a specific type.

nicolidin commented 2 years ago

friendly ping @ktsn

vdkrasny commented 2 years ago

This library solves the problem of weak vuex typing when working with TypeScript Pinia supports TypeScript out of the box. So I assume that vuex 5 will also support it. For example vuex 4 already does