Тёмный
No video :(

Easy State Management With Nuxt 3 

Chris Dixon
Подписаться 576
Просмотров 6 тыс.
50% 1

When building apps with NUXT.js or any other framework/library, we often have the need to manage state. In Vue.js or NUXT, state (our app's data) is commonly passed down to child components and passed up by firing custom events.
Text/blog version of this video can be found here:
chrisdixon.dev...
======================
Learn more about Nuxt.js and web development:
chrisdixon.dev...
======================
This works perfectly fine until we have components that are deeply nested, or, we need to share throughout our project.
NUXT 3 provides an easy-to-use state management composable to share state, or data, throughout or app. This also has the benefit of being reactive, meaning all components that use the state will be updated when a change occurs. Also, the useState composable is SSR friendly, meaning it is also available to use with server-side rendering.
Let's take a look at how we can do this, all examples will use the vue.js script setup syntax.

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

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@ritaburrows7493
@ritaburrows7493 8 месяцев назад
This is the best explanation I've found
@rishabhrao3661
@rishabhrao3661 Год назад
Gold, short simple and to the point
@chrisdixon161
@chrisdixon161 Год назад
Thanks!
@offgridvince
@offgridvince 6 месяцев назад
❤ Glad I found this! Great explanation.
@mojtabamoosavi1143
@mojtabamoosavi1143 Год назад
Hello, thank you very much for the Nuxt 3 training video, it was very useful for me, I wish you health and success. 🌸🙏🌻
@kingjrn9628
@kingjrn9628 9 месяцев назад
Excellent work. Thank you!
@jvanoers
@jvanoers 2 месяца назад
Thank you sir!
@1coderspemula
@1coderspemula 9 месяцев назад
Thanks so much from Indonesia 🥰
@sandyrocker008
@sandyrocker008 Год назад
man thanks a lot ur video helped me ...
@isophel
@isophel 7 месяцев назад
Thanks very much , however can one help me in fetching data from an api and use that same context of composables not any external state management (Vuex/pinia)
@_xrxietx_8749
@_xrxietx_8749 Год назад
Can I use pinia in the server? I wanna change a state of user, this state verify if the user is authenticated or not and then I want to use a Middleware for protection.
@Fuuchon
@Fuuchon Год назад
how to replace value in state?
@emankun
@emankun Год назад
Can we still use Vuex in nuxt 3?
@lv1kedi
@lv1kedi 11 месяцев назад
i think no. phinia available for nuxt
@offgridvince
@offgridvince 9 месяцев назад
Yes, you can. It states that on the vue website.
@i_am_a_real_cat1443
@i_am_a_real_cat1443 Год назад
hi
Далее
Nuxt 3 Route Middleware
7:46
Просмотров 5 тыс.
The Nuxt big thing in web development?
4:55
Просмотров 656 тыс.
ЭТО мне КУПИЛИ ПОДПИСЧИКИ 📦
22:33
Why you should use useState()
17:57
Просмотров 16 тыс.
You're Probably Using Nuxt Wrong
5:16
Просмотров 22 тыс.
Improving Security of Nuxt 3
13:12
Просмотров 6 тыс.
Vuex | State management example with Axios
22:37
Просмотров 58 тыс.
The Pinia Crash Course
34:40
Просмотров 16 тыс.
Easily Add Authentication With Nuxt 3 + Supabase
14:23
Learn Pinia in 30 MINUTES! (Vue JS 3)
33:58
Просмотров 118 тыс.