Тёмный

State management in Vue.js v3. What? When? How? 

Into the Coding
Подписаться 1,1 тыс.
Просмотров 1,9 тыс.
50% 1

Hi!
Ever was wondering what is a State manager in Vue.js?
How to use it? When to use it? Why not just use Props / Emits?
Check this out and hopefully you'll get answers to :)
Enjoy!

Наука

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

 

13 авг 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@codedjango
@codedjango 11 месяцев назад
Nice....2 questions here: 1) What is difference between options stores and setup stores? 2) What does the id parameter @10:12 signify? meaning why it is used for? If you can explain this it will be super helpful....Also not sure what is the difference between 'watch' and 'computed' in vue3....I find your videos super helpful hence I want to clarify these doubts....thank you so much
@IntoTheCoding
@IntoTheCoding 11 месяцев назад
1. In an Options store everything you create within State / Actions / Getters is available for usage from outside. If you use Setup store you can specify what you want to use and return { only that } 2. This kind of a Name of the store that Pinia will later on use to connect your Store with Vue dev tools. 3. Main difference between Watch and Computed is that in Watch you have an access to Old Value and New Value by default. Computed can only track one, latest Value if it has a Set() function. More about Pinia's Stores you can find in their DOCs: pinia.vuejs.org/core-concepts/
@codedjango
@codedjango 11 месяцев назад
That's cool....thank you so much....yea now i get it...difference between watch and computed....no one explains this....thank you once again :)
@IntoTheCoding
@IntoTheCoding 11 месяцев назад
@@codedjango you are welcome man :)
@rodrigosantosweb
@rodrigosantosweb 11 месяцев назад
Do you have any videos about Vue.js 3 or Nuxt 3 with authentication, authenticated routes, using MongoDB or Firebase with email and password?
@IntoTheCoding
@IntoTheCoding 11 месяцев назад
There will be an Auth via Firebase video quite soon
Далее
Learn Pinia in 30 MINUTES! (Vue JS 3)
33:58
Просмотров 115 тыс.
Node.js is a serious thing now… (2023)
8:18
Просмотров 633 тыс.
The Pinia Crash Course
34:40
Просмотров 15 тыс.
The Difference Between Vue and React
10:27
Просмотров 32 тыс.
5 Elegant ways to use Pinia 🍍
17:01
Просмотров 13 тыс.
Fix a memory leak in Flutter (#148291)  | Building Flutter
1:06:27
Learn Vuex in 30 MINUTES! (Vue JS 3)
32:12
Просмотров 123 тыс.
Why is Vite Everywhere? | Evan You
38:32
Просмотров 32 тыс.
Zustand - Complete Tutorial
19:27
Просмотров 71 тыс.
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Просмотров 119 тыс.
#engineering #diy #amazing #electronic #fyp
0:59
Просмотров 982 тыс.
Самый быстрый пылесос!
0:30
Просмотров 18 тыс.