Remix.run Logo
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.

chrisweekly an hour ago | parent [-]

That's... not quite right.

[EDIT] I typed "Router" when I meant "Query".

TanStack Query is the relatively newer name for React Query -- one of the most popular JS libraries of all time.

TanStack Start is a recent metaframework (and the one w/ the brightest future, IMO), but Tanner and team have profoundly significant bona fides. IOW, the dev team is far from being the "new kids on the block".

SahAssar 43 minutes ago | parent | next [-]

Do you have a source for TanStack Router being a newer name for React Router? Doesn't seem like it when looking at the sites for both projects.

Are you thinking of the whole Remix/ReactRouter thing?

chrisweekly 34 minutes ago | parent [-]

(facepalm)

Thank you, but no. I typed "Router" when I meant "Query". TanStack Query is the newer name for the library FKA react-query.

TanStack Router is an alternative to React Router.

TanStack Start is an alternative to Remix/react-router-7's framework mode.

The naming history and evolution of react-router and its relationship to Remix is a bit convoluted, but an unrelated tangent to the point I was making.

tacker2000 42 minutes ago | parent | prev [-]

That's... not quite right :)

React Router, which belongs to Remix, which was acquired by Shopify, is here: https://github.com/remix-run/react-router

Tanstack Router is an entirely new router.

chrisweekly 33 minutes ago | parent [-]

Thanks yes I know, I typed "Router" meaning "Query", noted in a peer comment. sigh.