Getting Started with Pinia | Crash Course

  Рет қаралды 21,913

Vue Mastery

Vue Mastery

Күн бұрын

Learn the fundamentals of Pinia, Vue's new state management library, by building a simple Todo List App. Join Vue Mastery to watch the rest of this course and all of our other premium Vue js courses 👉 www.vuemastery.com/courses
Ready to master Vue.js? With weekly Vue js tutorials on the latest topics, and exclusive content with Evan You (the creator of Vue), Vue Mastery is the ultimate learning resource for Vue developers to level-up their skills. Watch more free Vuejs tutorials 👉 www.vuemastery.com/courses
0:00 What is Pinia?
2:21 Store: Pattern for State Management
4:10 Pinia is modular by design
6:05 Creating our first store
9:38 Keep watching this course at VueMastery.com

Пікірлер: 37
@VueMastery
@VueMastery Жыл бұрын
To watch the full Pinia Fundamentals course, visit: www.vuemastery.com/courses/pinia-fundamentals/fundamentals-what-is-pinia
@VeaceslavBARBARII
@VeaceslavBARBARII Жыл бұрын
4:03 🔥I didn't expect that comming, lol
@FloWoelki
@FloWoelki Жыл бұрын
Pinia is a really cute new and refreshed Vuex. Good video and beautifully explained!
@itskittyme
@itskittyme Жыл бұрын
best video about Pinia I found today!
@AngelHdzMultimedia
@AngelHdzMultimedia Жыл бұрын
Wished you mentioned the Setup Function (Composition API Syntax).
@VueMastery
@VueMastery Жыл бұрын
This is a clip from our full course, in which we build an app using Pinia and the script setup syntax version of the Composition API => www.vuemastery.com/courses/pinia-fundamentals/fundamentals-what-is-pinia
@paulcraven3810
@paulcraven3810 Жыл бұрын
I used a pattern that involved dependency injection, by providing a class from the top level app.vue, and importing it into any component to mutate the props in the class. Moving through different routes, the state was maintained and reactive. This obviously removes the use of actions and getters, so is my concept legit?
@aislanarislou
@aislanarislou Жыл бұрын
Seems interesting. Can you show it for us ?
@paulcraven3810
@paulcraven3810 Жыл бұрын
Unfortunately I don’t have means to produce video content, however I would like to know a good chat forum to use for sharing ideas and code regarding vue, then setup a repository perhaps, any ideas would be welcome.
@aislanarislou
@aislanarislou Жыл бұрын
​@@paulcraven3810 you could link us to a gist or a github repo.
@ahmedbenkrara3164
@ahmedbenkrara3164 Жыл бұрын
while using vuex's state the data gets lost after reloading the page so we are forced to use localstorage or something like that to save data, so my question will be if i used pinia will i face same problem ?
@denishpatel6038
@denishpatel6038 Жыл бұрын
It has nothing to do with pinia or vuex, those are just state management Library, it don't save data for you, so you need local storage or similar approach to save data
@MissLaadyG
@MissLaadyG 9 ай бұрын
if you don't want to use localstorage, you need another form of data persistence system, such as a database + a backend to send the data in the right format.
@danielpereirasanches
@danielpereirasanches Жыл бұрын
What theme is used in VS Code?
@VueMastery
@VueMastery Жыл бұрын
Flat UI Dark
@danielpereirasanches
@danielpereirasanches Жыл бұрын
@@VueMastery Thanks
@fardolieri
@fardolieri Жыл бұрын
What is stopping me from writing a simple module _login-store.js_ that stores my state? export const loggedIn = ref(false) Any component can import it and it couldn't be more easy than that.
@khizer3528
@khizer3528 Жыл бұрын
Just searching for that
@passioncorners
@passioncorners Жыл бұрын
So it's like Vuex ?
@chizuru1999
@chizuru1999 Жыл бұрын
In their documentation they have mentioned you can say Pinia is just Vuex 5 but renamed.
@passioncorners
@passioncorners Жыл бұрын
@@chizuru1999 I see, thanks. It must have better syntax and flow if they’re making it Vue official state management now.
@chizuru1999
@chizuru1999 Жыл бұрын
@@passioncorners Ye I am totally new to Vue and In my eyes it s a Modern AngularJS framework 😆. Their documentation is great tho.
@SirDamatoIII
@SirDamatoIII Жыл бұрын
@@chizuru1999 great summary. It’s exceptionally powerful, and having improved and fixed most everything annoying in angular.js its a spiritual successor. Of all the frameworks it’s my favorite!
@deecee2204
@deecee2204 Жыл бұрын
yes without the MUTATOR
@jfordgaming9615
@jfordgaming9615 Жыл бұрын
Not mature enough but I still used in my new project.
@AngelHdzMultimedia
@AngelHdzMultimedia Жыл бұрын
WYTA!? Pinia is Vuex 5. Is the state management now recommended by the creator of Vue and the creator of Pinia.
@aislanarislou
@aislanarislou Жыл бұрын
@@AngelHdzMultimedia try to use it into a really big and complex app (with Typescript, of course) and you'll understand it.
@AngelHdzMultimedia
@AngelHdzMultimedia Жыл бұрын
@@aislanarislou Are you seriously telling me that having mutations is what makes it better for large projects!? (because that's the only difference between Vuex and Pinia, oh and better TypeScript support with Pinia). Where are you getting these "facts" from!? Or they are pure opinions!?
@mdkawsarislamyeasin4040
@mdkawsarislamyeasin4040 Жыл бұрын
I think It's like redux? 😅
@salahiddinediouri280
@salahiddinediouri280 Жыл бұрын
is the same concept , redux , vuex and pinia is a globale state management extension
@mdkawsarislamyeasin4040
@mdkawsarislamyeasin4040 Жыл бұрын
@@salahiddinediouri280 Ok thanks 💚
@salahiddinediouri280
@salahiddinediouri280 Жыл бұрын
@@mdkawsarislamyeasin4040 you welcome
@danielklein2694
@danielklein2694 Жыл бұрын
This approach looks kinda outdated - doesn't involve composition API - also you should be defining your stores the way composables are.. (most of veteran vue devs do that too fe. Ant Fu) - also one last thing that made me totally ingore anything in this video is lack of TS..
@VueMastery
@VueMastery Жыл бұрын
Hey Daniel. - At 07:30, you'll see we're using the script setup syntax, which is the latest version of the Composition API, recommended by Evan You. - At 09:00, the store is defined the way composables are, per the Pinia docs 😀 - Pinia w/ TypeScript is a topic we're producing content on over at www.vuemastery.com/
React developers can learn Vue much faster
6:15
Vue Mastery
Рет қаралды 7 М.
5 Elegant ways to use Pinia 🍍
17:01
Vue Mastery
Рет қаралды 12 М.
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 25 МЛН
Vue State Management Pinia Crash Course - Pinia Tutorial Vue.js 3
15:42
Program With Erik
Рет қаралды 49 М.
Every New Vue Developer Has Made These Mistakes...
18:04
Program With Erik
Рет қаралды 44 М.
The Pinia Crash Course
34:40
Laith Academy
Рет қаралды 15 М.
Mobile Development in Vue
17:52
Vue Mastery
Рет қаралды 11 М.
Unit Testing Vue Apps: Tips, Tricks, and Best Practices
29:51
Vue Mastery
Рет қаралды 11 М.
Apache Kafka Crash Course
1:18:06
Hussein Nasser
Рет қаралды 413 М.
Java 21 Is Good?! | Prime Reacts
27:08
ThePrimeTime
Рет қаралды 213 М.
Introduction To Pinia | Vue 3
12:52
John Komarnicki
Рет қаралды 7 М.
Differences between Vue and React?
8:09
Vue Mastery
Рет қаралды 20 М.
Vite in 100 Seconds
2:29
Fireship
Рет қаралды 802 М.
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 5 МЛН
keren sih #iphone #apple
0:16
Muhammad Arsyad
Рет қаралды 1,6 МЛН
AI от Apple - ОБЪЯСНЯЕМ
24:19
Droider
Рет қаралды 109 М.