I thought it was ok. It’s really helpful when using it for our cart system as I can make each component responsible for just getting and mutating the data it needs rather than passing through props but because they load on render and there was milliseconds of a delay for the actions to set the data correctly it can be an issue especially if you have multiple as they’re asynchronous. I had to use a lot of v-ifs and timeouts in places which was just a bit of a pain to figure out and fix
Vuex is the Vue (2) implementation of the redux pattern with actions and mutations. The browser tooling is really good with the ability to time travel though the changes in state.
However Vuex 4 does not play so nicely with Vue 3 and it looks like Pinia is now the official redux Library for Vue 3 as it supports typescript and Vuex 5 is no more.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What are your thoughts on Vuex?
I thought it was ok. It’s really helpful when using it for our cart system as I can make each component responsible for just getting and mutating the data it needs rather than passing through props but because they load on render and there was milliseconds of a delay for the actions to set the data correctly it can be an issue especially if you have multiple as they’re asynchronous. I had to use a lot of v-ifs and timeouts in places which was just a bit of a pain to figure out and fix
Ahhh dang. Sounds like maybe a use case for RxJS.
Vuex is the Vue (2) implementation of the redux pattern with actions and mutations. The browser tooling is really good with the ability to time travel though the changes in state.
However Vuex 4 does not play so nicely with Vue 3 and it looks like Pinia is now the official redux Library for Vue 3 as it supports typescript and Vuex 5 is no more.