Why you should use useState()

Alexander Lichter
Alexander Lichter
13.4 هزار بار بازدید - 6 ماه پیش - VUEJS AMSTERDAM DISCOUNT (20%):  i-really-like-alexander-lichter🔛
VUEJS AMSTERDAM DISCOUNT (20%):  i-really-like-alexander-lichter

🔛 Sending state from the server to the client is tricky but necessary when using SSR. And global state management is not the easiest part of an app either. Nuxt's useState composable solves both of these issues - but how? You'll learn in this weeks video!

Key points:
⏩️ How to send state from the server to the client (and potentially fix hydration errors)
🎉 Global state management without additional dependencies
🕶 How Nuxt Devtools helps debugging useState

---

Links:
📺️ The new Vue 3.4 feature NOBODY talks about…  The new Vue 3.4 feature NOBODY talks ...
📺️ The definitive guide to shallowRef The definitive guide to shallowRef in...
🔗 Docs for useState https://nuxt.com/docs/api/composables...
🔗 Code https://github.com/manniL/alexander-l...
🔗 Vue.js Amsterdam https://vuejs.amsterdam

Don't forget to hit that "Subscribe" button, ring the notification bell and give a thumbs up!

🌐 Connect further:
Website: https://www.lichter.io
Twitter/X: Twitter: TheAlexLichter
Twitch: Twitch: TheAlexLichter

Chapters:
00:00 Intro
00:54 Demo app overview
02:18 Fixing hydration errors via useState
04:48 Inspecting results and DevTools benefits
05:59 useState and serialization
07:54 How to not create global state in Nuxt
11:00 Correct global state implementation with useState
13:47 A deeper look into using useState for global state
15:29 Thanks for over 2000 subs 🎉
16:14 Winner of the raffle from last video!
17:08 Summary
6 ماه پیش در تاریخ 1402/10/29 منتشر شده است.
13,485 بـار بازدید شده
... بیشتر