Deliver Spreadsheet Experiences to your Applications
Over 400 implemented excel-like formulas. A feature-rich data grid component that includes functions like cross worksheets, filtering, export and import from xlsx, data binding, and more
💡 Vue Tip: Registering Cleanup Callbacks in Watchers
When you register a cleanup callback in a watcher, you can ensure that the cleanup logic is executed when the watcher is destroyed. This is especially useful when you need to clean up resources like event listeners or network requests.
Let's take a look at the following watcher which performs a network request:
But this code has a problem: If idid changes before the request completes, the callback logic executes with the stale ID. To fix this, you can use the onWatcherCleanuponWatcherCleanup function to abort the stale request:
onWatcherCleanuponWatcherCleanup is only available in Vue 3.5 and must be called during the synchronous execution of a watchEffectwatchEffect effect function or watchwatch callback function: you cannot call it after an awaitawait statement in an async function.
👉🏻 In this article, the author managed to validate forms on both the client and server sides without duplicating the validation logic, from simple text fields to complex file uploads with NuxtHub.
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? ...
Hey all! I just finished adding some new design patterns and recording a bunch of new videos for Clean Components Toolkit. I'll be launching this update on June 5th , in two weeks, with a big discount. Of course, if you already own it, you'll see the update soon. I'm adding in three new design patterns, bringing the total up to 21. I've also recorded a bunch of extra "bonus" content. Enjoy your tips for this week! — Michael Vue Tips Collection 2 Maybe you just want to stay on top of the latest features, remind yourself of interesting things Vue can do, and get daily inspiration. Vue Tips Collection is a beautiful book of 118 concise tips, as well as a daily email to get your creative juices flowing. Check out Vue Tips Collection 🔥 Proxy Basics Proxies are one of the strangest but most interesting parts of Javasc...
评论
发表评论