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.
Sunday, January 5, 2025 Update: Bluesky images work again and thus the Great Art on Bluesky channel is back. If you're on Bluesky please subscribe. # The crazy thing about Bluesky's API is they took already standardized things like links and enclosures, and after 20+ years came up with new definitions. Makes our apps more expensive to maintain, and we waste time and human wear and tear on stupid bullshit make-work. Developers are people, and our work is already horribly overly complex, we're working at the edge of comprehension, and what the fukc let's throw some more unnecessary complication into the mix. Arrogance, narcissism, whatever the source is, it's not a good way to introduce yourself. And, even better, after you go through the maze they break it, with an error message about legacy blob bullshit. They've already done this, and they're just getting started. It's why I say they should just adapt to RSS instead of trying to forc...
评论
发表评论