Vitesse is great, but I am still hoping for an official Nuxt3 launch this year. Vuex was relatively straightforward to use but Pinia is even more intuitive! Used it a few times, but still managed to learn something new from this video. Great job Marius.
Hey man. Just wanted to say you are so understandable throughout in every video. You never miss a point May confuse us, it's always clear. Thx for efforts!
Nice job explaining Pinia. Enough so that I can understand all the specifics but not too much. Thank you. Also would like to add my vote for router tutorial!
I like the simplicity of Pinia a lot. Too much boilerplate with solutions like Redux or Vuex. Also works perfectly with Typescript. By the way, I've created a logger plugin if anyone's interested. It's called "pinia-logger" on NPM
Hello there. I use VSCode, but can't seem to get it to work properly so as to recognize that "this" within the pinia actions and getters refers to the state, and therefore i'm not getting any autocompletion (from around 13:25). I followed the tutorial step by step. Thanks :)
It’s nothing special man! I recommend start with what you have and gradually upgrade, never buy expensive gear upfront it’s not worth it. But I’ll probably do a setup video soon for those interested, it’s a lot to type in a comment right now haha
hello marius, do you know how to use router.push() in pinia store, assume i have file stores/main.ts, how to implement it in that file ? also, how to access custom properties on vue devtool ?
Pinia is meant to manage your state not your routes, I would suggest separating those concerns. Also devtools already shows the values of a pinia store including values returned by getters, not sure what else you’d be looking for there
You can get pretty far with just a simple shared reactive object.., you can also use provide/inject to share data within a subtree easily.. generally though there are cases where state management gets complex enough that it makes you want to use something more powerful. It really depends on the use case. However there are other things to consider like improved devtools support, HMR, plugins, etc. If your state is fairly simple you probably don’t need vuex/pinia but you’ll realize as your state becomes more complex you’ll eventually slowly reinvent what pinia/vuex already built for you