There's still time to win 1 VueSchool Lifetime License and 1 Mastering Nuxt 3 License — check out the details below! 🎉
I'm also making steady progress on my Nuxt SaaS Starter Kit. It's a big project and based on Nuxt UI Pro v3. Since v3 is currently in alpha and still missing some components, the release is on hold until everything's ready. Stay tuned for updates!
👉🏻 A suite of Vue.js composables designed to enhance your forms with built-in behaviors, interactions, internationalization, and accessibility, seamlessly integrating with your markup and styles.
When you're working with Nuxt, you might find yourself in a situation where you need to fetch multiple pieces of data from different endpoints.
If you fetch the data sequentially, it can slow down the loading time of your application. Fetching the data in parallel can help you load the data faster and improve the performance of your application.
Let's say you have two API endpoints that you need to fetch data from and you need to await both requests before rendering the page. Here's how you might do it:
In this example, Nuxt will fetch the user data first and then the booking data. If the user data takes a long time to load, it will delay the booking data from loading as well.
To fetch data in parallel, you can use Promise.all()Promise.all() along with the useAsyncDatauseAsyncData composable provided by Nuxt:
By fetching the data in parallel, you can load the user and posts data simultaneously, which can significantly reduce the time it takes to load the page.
👉🏻 Inferable chose HTTP long polling over WebSockets for its real-time system due to scalability challenges with its Node.js/TypeScript backend and PostgreSQL database.
👉🏻 A tool for reverse-engineering website HTTP APIs.
👉🏻 It captures requests via a built-in HTTP proxy, analyzes data relationships between endpoints, and allows customization of functions with specific input/output parameters.
👉🏻 A browser-based JavaScript benchmarking tool that allows users to write, run, compare, and share benchmarks using TypeScript or JavaScript, providing real-time metrics and collaborative features.
😂 Fun
🔗 Want more Vue & Nuxt content?
More Exclusive Vue Tips: Join Michael Thiessen's newsletter and get great Vue tips and insights delivered to your inbox each week.
Weekly Vue & Nuxt Videos: You must subscribe Alexander Lichter's YouTube channel if you are interested in Vue & Nuxt.
DejaVue Podcast: A weekly podcast about Vue.js and the ecosystem around it.
Comments? Join the discussion about this issue in our Discord community.
Weekly Vue News #194 Reactive Time Ago View online Hi 👋 I'm on vacation this week, so no special news from my side — just some fresh Vue & Nuxt content for you! Enjoy this issue and have a lovely week ☀️ Vue 📕 Optimizing heavy operations in Vue with Web Worke...
Weekly Vue News #205 Weekly Vue News #205 - Vue Language Tools 3.0, useSlots, Nuxt Tips & More! View online Hi 👋 I'm back from my vacation and ready to share the latest Vue & Nuxt news with you! Enjoy this issue and have a lovely week ☀️ Vue 📕 What is useSlots in Vue? ...
Read this on my blog Hey all! Tomorrow I'm launching Composable Design Patterns — a collection of 15 patterns on how to use the composition API better. I've been working on this for a while (it's been in my head for years), and I'm excited to share it with you! You'll be getting a special launch discount, so make sure to pay attention to your email inbox tomorrow. Other than that, I've got a new podcast episode for you, and some links to check out, as well as some tips. Enjoy your week! — Michael ...
评论
发表评论