Dominik ๐Ÿ”ฎ(@TkDodo) 's Twitter Profileg
Dominik ๐Ÿ”ฎ

@TkDodo

Software Engineer โ€ข Maintaining TanStack Query โ€ข blog at https://t.co/tqjsQfLXIR โ€ข Frontend Tech Lead @myadverity โ€ข ReactJs โ€ข TypeScript โ€ข Father of two ๐Ÿ‘งโ€๐Ÿ‘ฆ

ID:44217212

linkhttps://query.gg calendar_today02-06-2009 21:48:27

18,1K Tweets

37,3K Followers

382 Following

Cory House(@housecor) 's Twitter Profile Photo

Problem: I want to show a spinner if any React Query mutations are in progress.

Solution: useIsMutating. This hook returns true if any mutations are running.

Problem: I want to show multiple spinners, depending on which mutations are pending.

Solution: useMutationState. This

account_circle
Tanner Linsley(@tannerlinsley) 's Twitter Profile Photo

Tiger Abrodi tRPC.io ๐Ÿง™โ€โ™‚๏ธ Dominik ๐Ÿ”ฎ Alex / KATT ๐Ÿฑ Because streaming the resulting html every request != streaming the js once and then only the data every request. There will always been an inflection point where one is more attractive for your applications performance/interactions than the other. Component dynamism,

account_circle
Dominik ๐Ÿ”ฎ(@TkDodo) 's Twitter Profile Photo

How does TypeScript module augmentation work in a monorepo with a composite setup? We have one package A that augments a 3rd party definition (@tan_stack router in this case), but how would package B 'see' that augmentation if A already depends on B ๐Ÿค”

account_circle
Dominik ๐Ÿ”ฎ(@TkDodo) 's Twitter Profile Photo

๐Ÿ”ฎ Exciting news: I'm so happy to announce that the course on TanStack Query I've been working on will launch May 22 ๐Ÿš€

Huge thanks to Tyler McGinnis and the team behind ui.dev for working with me on this ๐Ÿ™

๐Ÿ”ฎ Exciting news: I'm so happy to announce that the course on TanStack Query I've been working on will launch May 22 ๐Ÿš€ Huge thanks to @tylermcginnis and the team behind @uidotdev for working with me on this ๐Ÿ™
account_circle
Dominik ๐Ÿ”ฎ(@TkDodo) 's Twitter Profile Photo

I think I'm ready to ship the scoped mutations feature. Here's the PR if you want to give it a look: github.com/TanStack/queryโ€ฆ

It refactors a lot in our internal logic, which is also used in queries. Wouldn't be possible without the extensive test coverage. Still a bit scary ๐Ÿ˜…

account_circle
Johannes Schickling(@schickling) 's Twitter Profile Photo

My 2 big (technological) bets for this decade:

1) Local-first: A different way how apps are architected โ€“ mainly how data flows and responsibility of client vs server.

2) Effect: A better foundation to build with TypeScript.

account_circle
Artem Zakharchenko(@kettanaito) 's Twitter Profile Photo

If an interviewer asks me 'Which is more performant: .forEach() or a for/of loop?' I walk out of the door and never come back.

account_circle
Dominik ๐Ÿ”ฎ(@TkDodo) 's Twitter Profile Photo

I wrote this over a year ago, and I still believe it's 100% true. React isn't dying.

tkdodo.eu/blog/why-reactโ€ฆ

account_circle
Matt Pocock(@mattpocockuk) 's Twitter Profile Photo

Based on Dominik ๐Ÿ”ฎ's article, here's how to create a reusable 'createZustandContext' function.

Just a sprinkling of generics, a bit of knowledge about Zustand's 'StoreApi' type, and you're good to go.

Based on @TkDodo's article, here's how to create a reusable 'createZustandContext' function. Just a sprinkling of generics, a bit of knowledge about Zustand's 'StoreApi' type, and you're good to go.
account_circle
Seb โš›๏ธ ThisWeekInReact.com(@sebastienlorber) 's Twitter Profile Photo

๐Ÿ“œ Zustand and React Context - Dominik ๐Ÿ”ฎ

You'd get great benefits by putting your Zustand store in a React context:
- init store from props
- improved testability
- multiple local instances

100% agree with this article

twitter.com/TkDodo/status/โ€ฆ

๐Ÿ“œ Zustand and React Context - @TkDodo You'd get great benefits by putting your Zustand store in a React context: - init store from props - improved testability - multiple local instances 100% agree with this article twitter.com/TkDodo/status/โ€ฆ
account_circle
Tanner Linsley(@tannerlinsley) 's Twitter Profile Photo

Trust me that there's no unwarranted shill when I say that I've never seen tech education quality quite like this new Query course. The ui.dev team are geniuses and Dominik ๐Ÿ”ฎ is quite literally our planet's leading expert on all things Query.

If you want to learn Query, this is

account_circle
Seb โš›๏ธ ThisWeekInReact.com(@sebastienlorber) 's Twitter Profile Photo

100% agree

To me, NOT putting your Zustand store in a React context almost feels like an anti-pattern

You should be able to test things easily and write that:
<>
<ProvideZStore><Item1></ProvideZStore>
<ProvideZStore><Item2></ProvideZStore>
</>

100% agree To me, NOT putting your Zustand store in a React context almost feels like an anti-pattern You should be able to test things easily and write that: <> <ProvideZStore><Item1></ProvideZStore> <ProvideZStore><Item2></ProvideZStore> </>
account_circle