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...
Tuesday, August 20, 2024 My linkblog, which posts to the Links tab on Scripting News, as well as Bluesky , Mastodon and RSS , now also posts to Twitter and Threads . # Today would have been my mother's 92nd birthday. She died in 2018, and I still haven't, deep inside, fully gotten the message that she's gone. Probably the most significant person in my life. I find most of my adult relationships can be traced back to my relationship with her. # Ignore the NY Times # When President Biden took the stage last night at the DNC, I had a moment of buyer's remorse. He looked so good in his black suit, and the pictures of the new candidates, and their spouses, looked comical in comparison to the president who was about to speak. # Why did Walz have a permanent frown on his face. I find his presence next to Harris is almost always awkward. He's taller, and moves a lot. I noticed this with Sanders when he was debating Clinton in 2016. Sh...
Sunday, August 25, 2024 The problem with the state-by-state abortion laws that Trump says he favors: 1. The women in states that ban abortion who will die as a result of the bans, and many more who will be severely injured, and all will have their freedoms severely restricted. 2. He's lying. When Congress passes a national abortion ban he'll sign it and boast about it, of course . # If you're interested in languages and compiler compilers and how to bootstrap a scripting environment, then you'll enjoy the progress I've made in the project to get UserTalk running in today's environments. I welcome comments from experienced or curious language devs. # Walt Mossberg : "Journalists have one core job: to tell the truth, especially when it's clear. The staff of the NY Times has done it in the past, even at great risk. Why don't they do it now?" # My response : "We have no visibility into the inner workings of the NYT. We...
评论
发表评论