maoberlehner / vuex-map-fields

Enable two-way data binding for form fields saved in a Vuex store
MIT License
1.42k stars 86 forks source link

Support Vuex 4 #132

Closed arnauddoub closed 2 years ago

arnauddoub commented 3 years ago

Hello, vuex-map-fields support vuex 4 ?

itsChris commented 3 years ago

you have formulated the question in a very general way. I asked myself a similar question and therefore created a test project. if you are interested, you can find it here.

https://github.com/itsChris/vuex-4-mapfields

As far as I understand, I would claim vue 3 and vuex 4 are supported. for me, this is important because I work with vue 3 and vuex 4. if anyone has experience, I am interested.

maoberlehner commented 3 years ago

Thanks @itsChris for answering the question!

vuex-map-fields relies on this.$store.getters and this.$store.commit. If Vuex 4 has the same API for those two, there is no reason why it shouldn't work.

darrinmn9 commented 2 years ago

If this library does support vue2/3 and vuex3/4, is it worth adding a note of this in the readme?

Also, it seems all of the current unit tests are run on vue2/vuex3, is it possible to have the tests run against vue3/vuex4 as well?