Тёмный

Vue 3 | State Management With The Composition API ( Vuex Alternative? ) 

John Komarnicki
Подписаться 22 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@JohnKomarnicki
@JohnKomarnicki 3 года назад
What do you think of this alternative method to creating a store (state management) with the composition API? Let me know in the comments
@mohammadaliafrasiaby2347
@mohammadaliafrasiaby2347 3 года назад
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.
@cjmaaz
@cjmaaz 3 года назад
Great video!!!! Waiting for your next video at Traversy Media.
@JohnKomarnicki
@JohnKomarnicki 3 года назад
Thanks Maaz! Hopefully you should all see that soon!
@leonardthillmann9444
@leonardthillmann9444 2 года назад
That really helped me out. I didnt have to import the vuex library. Thank you.
@JohnKomarnicki
@JohnKomarnicki 2 года назад
Glad to hear that! 😄
@sanusivictorolajuwon514
@sanusivictorolajuwon514 3 года назад
You're a Life Saver. Thanks for always creating amazing contents 🙏🏽
@JohnKomarnicki
@JohnKomarnicki 3 года назад
Thanks for that. Glad they are able to help :)
@sanghoonkim339
@sanghoonkim339 2 года назад
감사합니다. 많은 도움이 되었습니다!
@caiovinicius7871
@caiovinicius7871 2 года назад
This is really great when used on small projects, in big (really big) projects i'll go with Pinia.
@JohnKomarnicki
@JohnKomarnicki 2 года назад
Exectly. It’s a perfect solution for smaller projects when you only need a small simple store / state management
@ajglj
@ajglj 3 года назад
Thank you John. Perfect video.
@JohnKomarnicki
@JohnKomarnicki 3 года назад
Appreciate it :)
@oscaresteve5344
@oscaresteve5344 2 года назад
A good alternative and full typed !
@RodrigoDAgostino
@RodrigoDAgostino 2 года назад
Awesome tutorial! Thank you so much! :)
@johnnydriesen7575
@johnnydriesen7575 3 года назад
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.
@JohnKomarnicki
@JohnKomarnicki 3 года назад
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.
@johnnydriesen7575
@johnnydriesen7575 3 года назад
@@JohnKomarnicki Thanks a lot for taking your time to reply. Highly appreciated !
@JohnKomarnicki
@JohnKomarnicki 3 года назад
@@johnnydriesen7575 no problem at all :)
@adolfusadams4615
@adolfusadams4615 3 года назад
Hi John, great tutorial! Could you do a tutorial showing how to use apollo (graphql) for state management in Vuejs?
@JohnKomarnicki
@JohnKomarnicki 3 года назад
I’ll take that into consideration!
@yeravl
@yeravl 2 года назад
Vuex or composition API? What's better?
@JohnKomarnicki
@JohnKomarnicki 2 года назад
Really depends on the project. Mainly the size of them. For smaller projects i think this method is a quick and efficient!
@badasscoder4481
@badasscoder4481 3 года назад
what about pinia
@sanderluis3652
@sanderluis3652 2 года назад
Pinia
Далее
Vuex Crash Course | State Management
1:01:19
Просмотров 400 тыс.
New component patterns for Vue 3
21:12
Просмотров 38 тыс.
Learn Vuex in 30 MINUTES! (Vue JS 3)
32:12
Просмотров 126 тыс.
The Most Important Design Pattern in React
35:04
Просмотров 92 тыс.
Vuex 4 Crash Course - 2021
1:14:57
Просмотров 35 тыс.