Profile avatar
tkdodo.eu
โš›๏ธ Maintaining TanStack Query ๐Ÿ”ฎ https://query.gg ๐Ÿ‘จโ€๐Ÿ’ป Software Engineer @sentry.io ๐Ÿ“š Blog at https://tkdodo.eu ๐Ÿ‡ฆ๐Ÿ‡น Vienna, Austria ๐Ÿ‘ง๐Ÿ‘ฆ Father of two
939 posts 7,182 followers 340 following
Regular Contributor
Active Commenter

In apps, the best TypeScript code looks just like JavaScript

๐Ÿ“ข PSA: The @tanstack.com docs are currently experiencing some issues, leading to wrongly displayed pages. You might go to a query docs url, but see a table docs sidebar with router docs content. It's quite funny to see ๐Ÿ˜†. Enjoy it while it lasts because we're working on a fix.

๐Ÿ‘‹

The grass always looks greener on the other side because you look at it from a different, shallower angle.

In apps, the best TypeScript code looks just like JavaScript

Not sure where in the docs I should put this but we definitely need a disclaimer somewhere that @nextjs.org server actions SHOULD NOT be used for queries. They aren't meant for fetching data. They run in serial. They have issues, like they don't seem to terminate if you navigate away fast enough...

Yes, it's TanStack Router... on Solid! ๐Ÿ‘€

I'm one scam chat message away from turning off DMs from people I don't follow ๐Ÿ™„. Why does it always have to be this way ?

How can I force TypeScript to collapse identical unions? const obj = { a: {foo: 1}, b: {foo: 3}, }; type ExtractedType = typeof obj[keyof typeof obj]; I want this to yield { foo: number }, but I get { foo: number } | { foo: number } instead. www.typescriptlang.org/play/#code/M...

If you're still on the (deprecated) create-react-app today and want a drop-in replacement that will scale with you, give create-tsrouter-app a try ๐Ÿ™Œ

We just released our new TanStack Query adapter for @trpc.io powered by the `queryOptions` API. Codemod available (still a bit of a WIP but works quite well) for simple migration. Let us know what you think! trpc.io/blog/introdu...

Shoutout to Nick for contributing a lot of great improvements to @tanstack.com query upstream while working on the @trpc.io integration ๐Ÿ‘

๐ŸŽ™๏ธ In case you missed @tkdodo.eu's talk โ€œReact Query - The Bad Partsโ€ at @reactdayberlin.gitnation.org, he recently uploaded the slides and transcript of his talk. Definitely worth a read!๐Ÿ‘‡ ๐Ÿ”— tkdodo.eu/blog/react-q... #ReactQuery #TanstackQuery #react

@trpc.io now offers an integration built on top of queryOptions. I'm pretty hyped about this ๐Ÿ™Œ

Check out `pnpx create-tsrouter-app`. It creates applications like create-react-app, but with TanStack and Vite under the hood. youtu.be/10J6RyMOxN0

Welcome to TeamTanStack, @jherr.dev ๐Ÿ™Œ

๐Ÿ“ฃ Time to announce "create-tsrouter-app" or CTA, a drop-in CRA replacement: - Powered by @vite.dev, TanStack Router, built by @jherr.dev - TypeScript/Tailwind/File-Route templates (more coming) - Full control over Vite and (soon) upgradeable to TanStack Start www.youtube.com/watch?v=10J6...

If you're still on the (deprecated) create-react-app today and want a drop-in replacement that will scale with you, give create-tsrouter-app a try ๐Ÿ™Œ

After seeing the backlash to the recent React docs setup update, I've tackled it myself. I've put up a PR that reworks the "Create" page with better explanations and a "Start from Scratch" section that recommends Vite + routers: github.com/reactjs/reac... I think this should make everyone happy!