I’ve been rebuilding some landing pages at work which included moving everything over to stripe and changing out the old code for new. It’s taken me a good few days, I’d never used vuex before so was something new to wrap my head around but I finally (all my fingers and toes crossed) got it finished today for our rollout next Tuesday 🤞🏻 It was a huge project and such a sigh of relief on a Friday to have it finished 👏🏻
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.
I’ve been rebuilding some landing pages at work which included moving everything over to stripe and changing out the old code for new. It’s taken me a good few days, I’d never used vuex before so was something new to wrap my head around but I finally (all my fingers and toes crossed) got it finished today for our rollout next Tuesday 🤞🏻 It was a huge project and such a sigh of relief on a Friday to have it finished 👏🏻
We use vuex at work. Still wrapping my head around it.
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.