Vue JS State Management with Pinia! | Pinia & Composition API Tutorial

  Рет қаралды 13,420

Tyler Potts

Tyler Potts

2 жыл бұрын

Learn how to use Pinia with Vue 3 Composition API to handle the state management of a User Management System!
Source code: github.com/TylerPottsDev/yt-v...
// JOIN THE DISCORD SERVER!
/ discord
// BECOME A MEMBER TO UNLOCK MORE CONTENT!
kzbin.infojoin
// MY GEAR FOR CODING AND KZbin
Blue Yeti Microphone: amzn.to/3jr3l7T
Microphone Stand: amzn.to/35B9LMN
Chair: amzn.to/3dWds3F
Thunderbolt Dock: amzn.to/3osBF6u
Monitor: amzn.to/37I8KoR
Screenbar Light: amzn.to/3iFRS7w
All of these products I own and have tested!
// FOLLOW ME ON TWITTER
/ tyler_potts_
// INTERESTED IN GAME DEV?
Game development channel: / muddywolf
// CHECK OUT MY GAME
play.google.com/store/apps/de...
// DO THESE SIMPLE STEPS
LIKE, SUBSCRIBE & SHARE

Пікірлер: 30
@groovbox
@groovbox 2 жыл бұрын
THANK YOU for not use the same useless counter store example as almost every other guide on pinia
@SLRModShop
@SLRModShop Жыл бұрын
took me a while to understand the point of computed() because of that, all their examples were useless, with other, more convenient ways to achieve what they were doing. Add to that all the youtubers making content after they've read the documentation once... Yeah, not many great Vue channels out there, unfortunately. took me 6 months to learn that I can use v-bind(nameOfVariable) in CSS!
@victoradekunle3734
@victoradekunle3734 2 жыл бұрын
Thanks for this tutorial tyler and pinia is so great 🥺, makes working with state easier
@TylerPotts
@TylerPotts 2 жыл бұрын
Thanks for watchng, Victor!
@vampirejs758
@vampirejs758 2 жыл бұрын
Yoo thanks for such a great tutorial , Tyler 😀😀
@TylerPotts
@TylerPotts 2 жыл бұрын
Yoo thanks for watching the tutorial, Vamp!
@sylvesterdaniel6069
@sylvesterdaniel6069 Жыл бұрын
Very precise. Thanks
@abdulrakib9906
@abdulrakib9906 2 жыл бұрын
Looking more tutorials, thanks!
@TylerPotts
@TylerPotts 2 жыл бұрын
More to come!
@m1nmara
@m1nmara 10 ай бұрын
very usefull tutorial, thanks, Tyler your IDE didn't fix "localcompare" to "localecompare" right away for some reason
@protocode_227
@protocode_227 2 жыл бұрын
Perfect! Now let's update the Vue/Sanity live feed thingy :D
@Free--Soul
@Free--Soul Жыл бұрын
great job!!
@TylerPotts
@TylerPotts Жыл бұрын
Thank you! Cheers!
@user-oe3ef4lw8v
@user-oe3ef4lw8v Жыл бұрын
Hey Tyler Potts. Thank you. Your Pinia video helped me a lot😎 I'm watching the video and I'm curious about the following. 1. I'm very curious about the extension program in your Visual Studio Code, which recommends what parameters of the method should be used.
@adeleke5140
@adeleke5140 Жыл бұрын
Thanks for the great example Tyler, also, what's your font? It looks very nice.
@atharvasurwase6772
@atharvasurwase6772 3 ай бұрын
cool!
@kristiankazalev5808
@kristiankazalev5808 Жыл бұрын
Really helpful tutorial. What theme are you using ?
@vigilantezack
@vigilantezack 2 жыл бұрын
Ok basic question here; how do you save the store so everything is not wiped out when the browser refreshes? I assume it has to go to session or cookie or local storage or something? So how do you keep the data saved so it's not lost on page change?
@TylerPotts
@TylerPotts 2 жыл бұрын
I would either use a database or localstorage for that!
@vigilantezack
@vigilantezack 2 жыл бұрын
@@TylerPotts Yes that would have to be the case. It's just that I've found dozens of state management how-tos and such but everybody stops short of explaining how to actually keep the state! I'm assuming there are tools to persist state, that's what I thought state management was to begin with, Vuex or Pinia. But then I learn those don't actually persist the state, so now I guess there must be even more state management tools/plugins? Tutorials always stop short of explaining how to maintain state. Nobody wants to write an app or game or todo list that wipes out all your data if the browser gets refreshed. That would seem like a given topic to go over when dealing with state management. Thanks!
@juguetestoys1137
@juguetestoys1137 2 жыл бұрын
Hi Tyler, you're a genius. In the above video, when I fetch the URL of the anime page, I get CORS error, how can I fix it, without using the "cors anywhere herokuapp" service. I am waiting for your answer
@maxautoton5733
@maxautoton5733 2 жыл бұрын
What is Your vscode extension for autocomplete and syntax ? It looks amazing 😉😀
@TylerPotts
@TylerPotts 2 жыл бұрын
It's call Github Co-Pilot
@DavideDeMaestri1
@DavideDeMaestri1 Жыл бұрын
Thanks for this tutorial! Which extension are you using to auto-complete tags/function? It seems really powerful! Some AI?
@adeleke5140
@adeleke5140 Жыл бұрын
seems to be Github copilot
@flolegend6402
@flolegend6402 Жыл бұрын
yeah was wondering the same. would love to have it
@SeanCarrington
@SeanCarrington 5 ай бұрын
"The useless one" 😂😂😂. Sakura never gets any recognition lmao
@viniciusortiz4937
@viniciusortiz4937 2 жыл бұрын
17:50 You misstyped localeCompare the first time (localCompare), that´s why it didn´t work
@TylerPotts
@TylerPotts 2 жыл бұрын
AHA! I knew I was being crazy I was like this should work why doesn't it? 😂😂😂
Build a NOTES APP with Vue JS and Nhost using GraphQL & Tailwind CSS
1:01:13
Pinia Course 2022 | #vuejs3 store
1:27:13
Bitfumes
Рет қаралды 22 М.
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 463 М.
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,5 МЛН
The Pinia Crash Course
34:40
Laith Academy
Рет қаралды 15 М.
A Better Way To Organize Components In Vue
10:10
Program With Erik
Рет қаралды 17 М.
Proven Pinia Patterns - VueConf US 2023
31:34
Vue Mastery
Рет қаралды 13 М.
Learn Pinia in 30 MINUTES! (Vue JS 3)
33:58
Make Apps with Danny
Рет қаралды 114 М.
Unlocking Powerful State Management in Nuxt 3 with Pinia
46:59
Behon Baker
Рет қаралды 17 М.
5 Elegant ways to use Pinia 🍍
17:01
Vue Mastery
Рет қаралды 13 М.
Flutter Provider Tutorial - Flutter Provider State Management Guide
21:07
Build a Weight Tracker with Vue JS | Composition API Vue 3
25:21
Tyler Potts
Рет қаралды 14 М.
Safe
0:16
OHIOBOSS SATOYU
Рет қаралды 6 МЛН
Гений своего дела🔥
0:16
FERMACHI
Рет қаралды 7 МЛН
easy game filter 😎
0:12
Nandito Creative
Рет қаралды 4,4 МЛН
Странные штыри с кольцами из сарая
0:31
А на даче жизнь иначе!
Рет қаралды 2,9 МЛН