Hacker Newsnew | past | comments | ask | show | jobs | submit | chrisweekly's commentslogin

No joke, VHF has been saving sailors' lives for a long time now.

Yeah, fetching data from a server in useEffect is a widely acknowledged and documented antipattern.

It's a widely documented anti-pattern, while also not giving a convenient alternative.

Is it? I have never had any issues doing it this way.


I am not convinced. Have been using this pattern for years without issue.

You can lead a horse to water...

If by "train" you mean "learn", it occurs to me you could try applying the "CAR story" interview technique of relating a story in 3 sentence (one each for the Challenge, Action and Result). Once you have it down to 3 sentences, distilling it into one, or producing a title, should become doable. HTH

That's putting it mildly!

I'm reminded of an excellent surreal novel, "The Bear Comes Home" by Rafi Zabor, about an ursine jazz saxophonist.

Ok - bear mode activated: I'll add 'The Star Bear' by Michael Swanwick, where a man's series of encounters with a bear in Paris echo his feelings about being a Russian emigre.

https://reactormag.com/the-star-bear-michael-swanwick/


You saying “bear mode activated” reminds me of Dicey Dungeons...

(For those who don't know, there's a place in the game where, with a moderate amount of luck, you can trigger an item that transforms you into a bear, which changes your stats and available equipment, and you remain that way for the entire rest of the dungeon)


I am in fact a bear at this very moment.


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.


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".


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?


(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.


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.


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

Nah, they are the next toy for the magpie developers, now that Next.js is no longer cool.

Spriting is actually harmful for performance except in specific HTTP-1 scenarios.

Doesn't McMaster Carr still use sprites? Is that like the one optimization they managed to get wrong?

Looks like it, but isn't this site famous for being a "classic" storefront?

Some CMSs would auto-generate sprites. If you are showing most of them, it's still a positive, I'd assume. And, if it ain't broke, don't fix it.


Haha, this is great. Very impressive -- and a fantastic, detailed writeup. Congrats! And thanks for sharing! :)

yeah, it's an interesting socio-psychological phenomenon

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: