Learn Vuex by Example - Handling Vue State Management

  Рет қаралды 94,466

DesignCourse

DesignCourse

Күн бұрын

Пікірлер: 88
@yaesmucho
@yaesmucho 5 жыл бұрын
you are really good at talking , great voice, easy to keep up tempo.. im enjoying this and other nuxt vuex courses... you are not the only one, but sure one to keep up coming back to..
@Max-cr3dz
@Max-cr3dz 6 жыл бұрын
What is a good practice to attach data from a database to vuex? At what point should it be fetched and passed to vuex? Should it also be done through mutations?
@abdalrhmanmahmoud5725
@abdalrhmanmahmoud5725 6 жыл бұрын
i am a beginner should i start with vuex or made some project with vue at first
@LaurentVanDessel
@LaurentVanDessel 6 жыл бұрын
Hi, great tutorial! Have a small question though. What's the reason you define both ...mapActions(['removeLink']) as a removeLink function that calls this mapped action in the HelloWorld component? I just omitted this last "removeLink" function and that works perfectly fine too? Perhaps that's only necessary if you would like to do execute some extra modifications to the view? Also in the last step ("Stats" component), you both do ...mapMutations as ...mapActions. Doesn't only doing ...mapActions suffice?
@easy-stuffs
@easy-stuffs 6 жыл бұрын
Happy to see someone has the same question as mine.. :-) Hope Gary reply for that soon..
@tycooperaow
@tycooperaow 5 жыл бұрын
@@easy-stuffs still no reply
@DhanaLakshmi-yn7wi
@DhanaLakshmi-yn7wi 5 жыл бұрын
Nice video, what is the difference between mutators and actions ?? We can remove an element in mutators right??
@tododigital3725
@tododigital3725 5 жыл бұрын
just wondering if name: 'Stats' is necessary as you are using export default which will take the filename.
@kingzeddicus
@kingzeddicus 6 жыл бұрын
You sir just earned a new subscriber! I have learned a lot from just this tutorial. Thank you for your hard work. I hope you keep making videos like this in the future.
@vladhusnullin1650
@vladhusnullin1650 6 жыл бұрын
Why do we have to map Actions from the store - if we actually are not going to bind HTML events to those store actions ? maybe there is a way to just call those actions directly, without mapping it to components methods ?
@DavidVII7
@DavidVII7 6 жыл бұрын
Great primer to vuex that's easy to follow. Thanks for putting this together. Cheers!
@LifestylePro201
@LifestylePro201 6 жыл бұрын
very good tutorial i have already use vuex but this good example for map action map state and mutation we can use a standard way of coding.
@easy-stuffs
@easy-stuffs 6 жыл бұрын
Since you have directly triggered ADD_LINK to add a new link without using any mapActions then why can't you do the same to REMOVE_LINK and REMOVE ALL? Any reasons?
@blacklotus1606
@blacklotus1606 6 жыл бұрын
he actually mentioned it, if you want to do [ a sync call ]then use MapAction. listen from 25:05
@dominikkietyka9523
@dominikkietyka9523 6 жыл бұрын
it's better than angular?
@andrewkiminhwan
@andrewkiminhwan 6 жыл бұрын
truly a big fan of these Vue videos. thanks!
@lowkeygaming4716
@lowkeygaming4716 5 жыл бұрын
Really nice example. Very simple and informative
@khanriza
@khanriza 5 жыл бұрын
Unreal tutorial. Thank you very much.
@_rachid
@_rachid 4 жыл бұрын
Thanks for this. Vuex is simple to use than redux with React.js.
@jtktam
@jtktam 6 жыл бұрын
For future courses can we have some typescript examples?
@jgkdmdevienjjgg8866
@jgkdmdevienjjgg8866 6 жыл бұрын
You shoudn't import REMOVE_ALL mutation to component in the end
@handle13699
@handle13699 6 жыл бұрын
Great tutorial, thanks. I made this project with Nuxt and everything worked well. The only problem I got is that when executing the removeAllLinks method the links array is set to 0 after 1.5s but the is not updated, the links are still displayed and the App needs to be refreshed. Any idea what is happening?
@real-oppenheimer
@real-oppenheimer 6 жыл бұрын
31:36 Why do you import mapMutations at this point? Isn't mapActions sufficient?
@KFGhostFace
@KFGhostFace 5 жыл бұрын
legit thinking the exact same thing. the component should only need to be aware about creating actions and sending payloads afaik
@renwar
@renwar 4 жыл бұрын
No need to import mapMutations.
@mrashad_com
@mrashad_com 5 жыл бұрын
Awesome, this tutorial make Vuex looks very easy, thank you
@dudeking1000
@dudeking1000 5 жыл бұрын
why is mapGetters defined in computed and mapAction defined in methods?
@Max-cr3dz
@Max-cr3dz 6 жыл бұрын
When an awkward joke ment to be funny but remained awkward :D
@ThePrintLife
@ThePrintLife 6 жыл бұрын
I have started the development a screen printing shop management system. How would one go about making sure they have the proper implementation plan.
@jonecir
@jonecir 6 жыл бұрын
Hi Gary, really nice tutorial! Congrats! I also tried to add a link by creating an Action and it worked just fine. So what's the difference between calling the mutation (this.ADD_LINK(this.newLink)) and the action such as ( this.addLink(link) )?
@mamadoundiade2764
@mamadoundiade2764 6 жыл бұрын
Thank a lot for this tutorial, it really helps me to more understand vuex concept ! Thank again.
@nowacry
@nowacry 6 жыл бұрын
where do you define the ?
@PVideos10
@PVideos10 6 жыл бұрын
routerView becomes available automatically when you choose to use routes. router.vuejs.org/api/#router-view
@tanveeriqbal6680
@tanveeriqbal6680 6 жыл бұрын
You are too good. Great video on Vuex. Learned a lot. thanks
@fachrizalrifahdi
@fachrizalrifahdi 5 жыл бұрын
whats mean "..." after mapState function?
@daledurham3048
@daledurham3048 6 жыл бұрын
Why did you need to map the mutation for REMOVE_ALL? All you did was dispatch the action. You never referenced the mutation in the component.
@crazieeez
@crazieeez 6 жыл бұрын
I agree. Mutation and State should not be in component. Only mapGetters and mapActions should be in component.
@kimie126
@kimie126 4 жыл бұрын
why my color is gray, not pink like yours?
@imranshaikh115
@imranshaikh115 5 жыл бұрын
Thank you very much for this kind of beautiful explanation
@rudstoncullen3410
@rudstoncullen3410 6 жыл бұрын
Excellent Saved my day! Thanks
@SunilKumar-fh6jk
@SunilKumar-fh6jk 6 жыл бұрын
Thank you so much!
@jitujack007
@jitujack007 5 жыл бұрын
how to use state in component itself(Not in HTML)?
@meghan1798
@meghan1798 6 жыл бұрын
Thanks for the amazing tutorial!!
@jimh7604
@jimh7604 5 жыл бұрын
great tutorial !!!
@edarioq
@edarioq 5 жыл бұрын
Getting Error in v-on handler: "TypeError: this.ADD_LINK is not a function" with Typescript :(
@graceokolo3036
@graceokolo3036 6 жыл бұрын
Thanks a lot for the tutorial!!
@j.d.3890
@j.d.3890 5 жыл бұрын
I didn't get why not just use this.$store.dispatch("removeAll") in methods? No need to do any imports or additional declarations.
@hardcodd
@hardcodd 6 жыл бұрын
The best of the best! Thanks a million!
@jasonj6550
@jasonj6550 6 жыл бұрын
Thanks i learned alot!
@tomvito
@tomvito 6 жыл бұрын
Great video! Thanks :)
@fauzanadhima8961
@fauzanadhima8961 6 жыл бұрын
Good tutorial 👍👍 .
@rubinbajracharya9319
@rubinbajracharya9319 6 жыл бұрын
Awesome stuffs. Thanks. Also can you also make a video related to SEO in Angular 5 and above and how to host the site made in heroku or other. Thanks
@meeshell74
@meeshell74 6 жыл бұрын
Thank you!
@ViralVideosCompilations
@ViralVideosCompilations 6 жыл бұрын
awesome video
@tyresew.4233
@tyresew.4233 6 жыл бұрын
Now look if somebody ran into an error Maximum Call Stack exceeded on removeLinks() I found a solution. So under Methods, in mapActions its referenced as 'removeLink' but when defining it its removeLinks (plural) . ...mapActions([ 'removeLink' ]), addLink: function() { this.ADD_LINK(this.newLink) this.newLink = '' // empty when }, //plural removeLinks: function(link) { this.removeLink(link) } }, /
@Ruby-od2wn
@Ruby-od2wn 6 жыл бұрын
Awesome thanks for good tutorial..
@georgesmith3022
@georgesmith3022 6 жыл бұрын
i reinstalled vue-cli but it still show 2.9.3
@georgesmith3022
@georgesmith3022 6 жыл бұрын
i found out npm install -g @vue/cli
@marks.4405
@marks.4405 6 жыл бұрын
Please add the source code to github, Thanks
@yaesmucho
@yaesmucho 5 жыл бұрын
is this a little outdated? its August 3 2019.
@bashovski
@bashovski 5 жыл бұрын
No, it's not. Feel free to follow the steps from this video.
@thomaswhelton8864
@thomaswhelton8864 6 жыл бұрын
4:03 not sure how to hineniner
@mediocrelove9736
@mediocrelove9736 6 жыл бұрын
You're the man! Thanks
@mohammadrezaasadi6529
@mohammadrezaasadi6529 4 жыл бұрын
awsome awsome.....!
@maxmaksum4673
@maxmaksum4673 4 жыл бұрын
Awesome
@iNVICTUX
@iNVICTUX 5 жыл бұрын
Nice
@joe44850
@joe44850 5 жыл бұрын
Great tutorial. But no, KZbin, I do not want to learn to draw, even if I see the commercial 27,000 times.
@HaiderAli-co9jl
@HaiderAli-co9jl 5 жыл бұрын
19:52
@gokudomatic
@gokudomatic 5 жыл бұрын
Really nice tutorial. Thanks a lot! But I'll need you to go ahead and stop saying "I'll go ahead". That'll be great, m'kayyy.
@dejo095
@dejo095 5 жыл бұрын
Geez, the nerve of some people!
@geleiva
@geleiva 6 жыл бұрын
this is the post [coursetro.com/posts/code/144/A-Vuex-Tutorial-by-Example---Learn-Vue-State-Management]
@humanexe5451
@humanexe5451 6 жыл бұрын
Why is this better than PHP and regular Javascript?
@LNTutorialsNL
@LNTutorialsNL 6 жыл бұрын
0:36 libertarian confirmed
@philosophersam
@philosophersam 6 жыл бұрын
after hearing that, I needed to watch some Tom Sowell :-)
@rodrigz
@rodrigz 6 жыл бұрын
Who doesn't hate tho?
@latiendamac
@latiendamac 6 жыл бұрын
kzbin.info/www/bejne/p33GlGRvotlnm6M needed
@di3g04
@di3g04 6 жыл бұрын
Taxation is theft
@DindaneChahinaz
@DindaneChahinaz 6 жыл бұрын
I still don't understand why people code on windows... We're in 2018...
@DesignCourse
@DesignCourse 6 жыл бұрын
I still don't understand why people bitch and moan about which OS others use... Like, we're soooooo in 2018!!!!
@DindaneChahinaz
@DindaneChahinaz 6 жыл бұрын
We are forced to use Linux at university, and when we want to lean, people code on windows. It's been already 4 years that i hear my tearchers be like "Noo, don't code on windows, yes linux and mac is better, yes to open source, oh you have windows, where here -10 on your test 'cause that's bad". And I'm not your friend, so don't tell me that i bitch or moan. If you can't give a proper answer, well don't. I'm here to lean, not for you to scream at me. Thanks.
@DesignCourse
@DesignCourse 6 жыл бұрын
I was recently quoted as saying, "Don't go to school for code." You've given me reason #427 to add to the list of reasons: Stupid professors 😂 And if you were really here to learn, you would have omitted the snarky "We're in 2018.." I'll give you an answer though. Back in the late 90s when you were in diapers, I liked to game and code, thus PC. Back in the early 2000's, I had an aversion towards computers that looked like toys (iMac). Back 8 years ago I still liked to game and code, but I also had an aversion towards weird looking soyboys in silly commercials (Justin Long). Throughout all of this, I could always easily upgrade, build equivalent PC's for half the cost, and design / code whatever I wanted. ...are we BFF's yet?
@DesignCourse
@DesignCourse 6 жыл бұрын
Maybe I'll elaborate on today's live show! Tune in at 10:30am et and I'll give you a shout out!
@DindaneChahinaz
@DindaneChahinaz 6 жыл бұрын
Actually, everything i've learn isn't because of school or university. Sorry for "We're in 2018", that's a misunderstanding. Of course we're still BFF, i learned lot of thing thanks to you.
Vuex Crash Course | State Management
1:01:19
Traversy Media
Рет қаралды 400 М.
Learn NUXT 2 by Example - A Crash Course for Beginners
38:17
DesignCourse
Рет қаралды 51 М.
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,4 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 71 МЛН
Mastering Vue.js and Vuex
46:01
WeAreDevelopers
Рет қаралды 85 М.
Is this the NEW Movement that UI/UX Needs?! 2ADVANCED + RIVE
3:43
DesignCourse
Рет қаралды 16 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 120 М.
Vuex | State management example with Axios
22:37
Sweetdev
Рет қаралды 58 М.
The Vue Tutorial for 2018 - Learn Vue 2 in 65 Minutes
1:05:12
DesignCourse
Рет қаралды 340 М.
Awwward Winning Websites Gone Wrong
8:16
DesignCourse
Рет қаралды 20 М.
Vuex 4 Crash Course - 2021
1:14:57
Laith Academy
Рет қаралды 35 М.
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 320 М.
Vuex: Intro Tutorial
5:24
Vue Mastery
Рет қаралды 86 М.
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН