Thanks for your time to create this vid. Having two small questions: - how about Vuex Actions (so we can use async - await e.g. to retrieve data) - how about Vuex Namespaces ? Thanks in advance for taking your time to reply.
Glad you enjoyed it! 1. You have the ablility to create those however you want. In the video I stuck to using the Vuex naming / format. So you can create a actions objects or do it inside of your methods. The option is up to you. 2. For name spacing, all this is doing is breaking up your state. You can simple create multiple files like I’ve done here, and I’m pretty sure you’d have the same use as those to a certain degree. However, I think if your at a point of using this. You’re store might be a little to large to want to use this. That’s just my opinion, as I think this is perfect for smaller projects / stores.
What do you think of this alternative method to creating a store (state management) with the composition API? Let me know in the comments
hello can you create "creating and use vue pagination" course for beginers?
the courses in youtube is verry bad but your explaning is very good.
Great video!!!!
Waiting for your next video at Traversy Media.
Thanks Maaz! Hopefully you should all see that soon!
That really helped me out. I didnt have to import the vuex library. Thank you.
Glad to hear that! 😄
You're a Life Saver. Thanks for always creating amazing contents 🙏🏽
Thanks for that. Glad they are able to help :)
Thank you John. Perfect video.
Appreciate it :)
감사합니다. 많은 도움이 되었습니다!
Awesome tutorial! Thank you so much! :)
what about pinia
Thanks for your time to create this vid.
Having two small questions:
- how about Vuex Actions (so we can use async - await e.g. to retrieve data)
- how about Vuex Namespaces ?
Thanks in advance for taking your time to reply.
Glad you enjoyed it!
1. You have the ablility to create those however you want. In the video I stuck to using the Vuex naming / format. So you can create a actions objects or do it inside of your methods. The option is up to you.
2. For name spacing, all this is doing is breaking up your state. You can simple create multiple files like I’ve done here, and I’m pretty sure you’d have the same use as those to a certain degree. However, I think if your at a point of using this. You’re store might be a little to large to want to use this. That’s just my opinion, as I think this is perfect for smaller projects / stores.
@@JohnKomarnicki Thanks a lot for taking your time to reply.
Highly appreciated !
@@johnnydriesen7575 no problem at all :)
Hi John, great tutorial! Could you do a tutorial showing how to use apollo (graphql) for state management in Vuejs?
I’ll take that into consideration!
This is really great when used on small projects, in big (really big) projects i'll go with Pinia.
Exectly. It’s a perfect solution for smaller projects when you only need a small
simple store / state management
A good alternative and full typed !
Vuex or composition API? What's better?
Really depends on the project. Mainly the size of them. For smaller projects i think this method is a quick and efficient!
Pinia