| ▲ | SilverSlash 13 hours ago | ||||||||||||||||||||||||||||||||||||||||
I hadn't heard of TanStack but a quick look at their website doesn't inspire confidence tbh. I mean, just take "TanStack Pacer". It provides such things as: ``` import { Debouncer } from '@tanstack/pacer' // class const debouncer = new Debouncer(fn, options) debouncer.maybeExecute(args) // execute the debounced function debouncer.cancel() // cancel the debounced function debouncer.flush() // flush the debounced function ``` Why? Just why do you need to install some "framwork" for implement debouncing? Isn't this sort of absurdism the reason why the node ecosystem is so insecure and vulnerable in the first place? Just write a simple debouncer using vanilla js... | |||||||||||||||||||||||||||||||||||||||||
| ▲ | chrisweekly 42 minutes ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
Not to feed the trolls, but you responded to a comment about TanStack Start (a full-stack metaframework) by denigrating @tanstack/pacer -- a separate, niche utility published by the same team. You're entitled to your opinions, but I'm happy to defend the rationale of leveraging battle-hardened, rigorously-tested, open-source, type-safe libraries instead of DIY cowboy vanilla js spaghetti. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | MajimasEyepatch 4 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||
Obviously it's more than just debouncing. https://tanstack.com/pacer/latest/docs/overview | |||||||||||||||||||||||||||||||||||||||||
| ▲ | tacker2000 3 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
TanStack started out by providing a very good JS table library. Now they offer a Router, and some more libs. They are definitely an up and coming name in the JS space. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||