Class Serialization with SSR in Nuxt - no more POJO error messages!

Описание к видео Class Serialization with SSR in Nuxt - no more POJO error messages!

🙉 Using classes with Vue and Nuxt is not the most common approach - but no matter if you chose to because of preference or because a library provides some classes you need to use, they are there. But especially with Server Side Rendering, there are a few pitfalls using classes for state. In this video, we see what they are, why they exist and how to make it work nevertheless!

Key points:
🛠 The most common problem when using classes (you probably have seen that all)
💚 How resolve it with in-house features!
🕶 Enrich your Payload and make classes usable as state. No matter if own ones or library-based classes

---

Links:
🔗 Code: https://github.com/manniL/alexander-l...
🔗 Docs https://nuxt.com/docs/getting-started...
🔗 Existing revivers: https://github.com/nuxt/nuxt/blob/mai...
📺️ Why you should use useState()    • Why you should use useState()  

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:   / thealexlichter  
Twitch:   / thealexlichter  

Chapters:
00:00 Intro
01:26 Demo app check
02:06 The dreaded error message
02:27 Explaining the message and serialization
04:03 Payload features to serialize any type of data
07:54 Inspecting the payload manually
08:40 Summary

Комментарии

Информация по комментариям в разработке