Vuex Basics in Vue 3 with Composition API in 6 minutes

preview_player
Показать описание
Today we will be creating a simple counter app from scratch to learn the basics of using Vuex 4 with Vue 3 Composition API. We'll start by taking a look at Vuex concepts like state, getters, and mutations and how to use them within the options API, then we will switch over the compositions API and implement the same functionality. We'll also create some reusable helper functions to make accessing the store in the composition API more readable.

#vue #vuex #composition-api

⚡ RESOURCES ⚡

⭐ TIMESTAMPS ⭐
0:00 - Intro
1:08 - Creating a project
1:17 - Vuex Concepts
2:45 - Options API
3:35 - Vuex map Functions
4:24 - Composition API
5:00 - Composition Helper Functions
6:02 - Conclusion
Рекомендации по теме
Комментарии
Автор

This is actually insanely high quality tutorial. Keep it up!

zbynekjurica
Автор

Appreciate this tutorial! I was looking everywhere on how to use the mapstate in the composition api. Thank You!

Squawkize
Автор

Thank you, I've been looking for such a video for a long time

ДидарСалимгереев
Автор

Used the helpers in a project im working on, Nice!!!

Majik_exe
Автор

This video was really helpful and clear, thank you.

pavelino
Автор

Thanks for this, i wondered why i couldn't use mapGetters in vue3 composition api.

dexmbachu
Автор

does the helper gonna work with namespacing?

ZynthProductions
Автор

Love it! but I think the background music a bit to loud.

wijaksanapanji
Автор

In start I didn't vuex so now can i do it manually?

gtbaba
Автор

How does it work with different named spaced modules?

SirAlexMayo
Автор

Nice tutorial, is there a way to do name-spacing?

SyedHaroon
Автор

i don't know when to use options or composition api?

zombaju
Автор

Vuex or composition API? What's better?

yeravl
Автор

Do I need to use Vuex 4 in order to use it with composition-api in a vue 2 project?

shutterradio
Автор

If you’re committing from the store, why are you calling the helper function useMutations? Shouldn’t it be useActions?

robertotonino
Автор

I do lvoe ur videos about vue! I only miss part, where u do tutorial with typescript instead of js only ;/

Byku
join shbcf.ru