Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
No need to bundle it when in many cases it's not needed.
@nitwhiz Provide/inject in Vue 3 covers a lot of what Vuex does, yes -
You're frustrated now? Wait till you get it to work and start "using" it... fuck vuex!
-
Vue.js is a progressive framework so it makes no sense to integrate Vuex to it especially Vue 3 enable devs to have much less boilerplate code.
And chances are, you may not even need Vuex or any state management library for your use cases.
Here's a good video about it https://youtu.be/sjB6wamZQN0
And as @ScriptCoded mentioned, Vue 3 allows you to manage state more easily without relying on Vuex. -
AnticRaven04yFuck Vuex. Just use the $root instead before Vuex even existed. Who wants to reimplement shitty react ideals.
Or just use the modern.
Vue.observable
```
const state = Vue.observable({
list: [],
note: 'Ping!'
})
const methods = {
onAddItem () {
state.list.push('You’ve added me')
},
onPong() {
state.note = 'Pong!!!'
}
}
export {
state,
methods
}
```
Wonder why this comment doesn't support Markdown.
Related Rants
Fuck vuex
Spent hours trying to Integrate it to my Vue app in vain
Why not bundle it with vuejs?
Fuck
🚶🚶🚶
random
vue.js
js