Log inSign up
Dominik ๐Ÿ”ฎ
21.3K posts
Image
user avatar
Dominik ๐Ÿ”ฎ
@TkDodo
Maintaining TanStack Query โ€ข blog at tkdodo.eu โ€ข Software Engineer @getsentry โ€ข ReactJs โ€ข TypeScript โ€ข ๐Ÿ‡ฆ๐Ÿ‡น Vienna, Austria โ€ข Father of two ๐Ÿ‘งโ€๐Ÿ‘ฆ
๐Ÿ”ฎ available now โžก๏ธ
query.gg
Joined June 2009
411
Following
57.1K
Followers
  • Pinned
    user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    May 29, 2024
    ๐Ÿ“ข I'm so stoked to announce that today, ๐Ÿ”ฎ query.gg - the brand new, official @tan_stack React Query course - is live and available for everyone ๐ŸŽ‰
    Image
    The Official React Query Course - ๐Ÿ”ฎ query.gg
    From query.gg
    129K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Sep 30, 2024
    I'm dying a little inside ๐Ÿ˜ญ
    user avatar
    zera
    @zeranel
    Sep 30, 2024
    first time using tanstack query.
    Image
    361K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Oct 17, 2023
    ๐Ÿ“ขAnnouncing TanStack Query v5 ๐ŸŽ‰๐Ÿฅณ ๐Ÿค unified object API ๐Ÿ“ˆ simplified, optimistic updates โ™ป๏ธ sharable mutation state ๐Ÿ”€ suspense and streaming w/ RSC โ™พ๏ธimproved infinite queries โšก๏ธ ~20 % smaller ๐Ÿ› ๏ธnew agnostic devtools ๐Ÿ’พ fine-grained persistence
    Image
    GIF
    242K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Jan 23, 2024
    components / hooks / types / utils (and constants) is the split I'm seeing in many codebases, yet it's the one I dislike the most. It groups by type, not by domain. "useTheme" will live next to "useTodo", but not next to ThemeProvider ... why?
    Code colocation

โŒ horizontal split
components / hooks / types / utils

โœ…
dashboard
profile
todo-list
    515K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Nov 20, 2024
    Let's play: "You Might Not Need this Effect". It's a game where you show me some code where you use useEffect, and I'll try to find a way to remove it. Hit me ๐Ÿค˜
    336K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Oct 18, 2024
    ๐Ÿคฏ Oh wow, ChatGPT really uses @tan_stack React Query. Absolutely amazing to think about about how many people are interacting with code Iโ€™ve written
    ChatGPT screenshot with React Devtools open, showing the HydrationBoundary component that has a serialized query
    67K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Oct 9, 2024
    useEffect
    user avatar
    trash jones
    @jzux
    Oct 5, 2024
    today is national enemy day everyone post your nemesis
    73K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Jul 15, 2023
    ๐Ÿ“ข Yesterday, we released an experimental react-query-nextjs package for the app directory. Wrap your app in the <ReactQueryStreamedHydration> component to enjoy direct useQuery fetches on the server with suspense, which streams to the client ๐ŸŽ‰ Example: tanstack.com/query/v5/docs/โ€ฆ
    204K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Feb 13, 2024
    PSA: Whenever you think of writing useEffect, the only sane thing is to NOT do it. Instead, go to the react docs and re-read the page about why you don't need an effect. You really don't. But what if I ne.. - NO. read the page! In my specia.. - NO. read the page! READ THE PAGE
    201K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Jul 17, 2024
    Is there a GitHub Action that will just run prettier on the whole repo and commit the changes to the PR? I'm so tired of the feedback loop where prettier fails on PRs. We even have a pre-commit hook to validate but it's not helping. It's insane how much time is wasted here ...
    275K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Aug 18, 2023
    Everything
    This post is unavailable.
    337K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Nov 15, 2023
    default exports were a mistake
    130K
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Nov 20, 2022
    โค๏ธ I've talked a lot about how I love zustand - I've been using it quite extensively over the last 3 years. ๐Ÿ“š This is the beginning of a series I've planned on "working with zustand". The intro is a bit basic, I want to go deeper in the future:
    Image
    Working with Zustand
    From tkdodo.eu
  • user avatar
    Dominik ๐Ÿ”ฎ
    @TkDodo
    Feb 12, 2024
    My wife just told me that a website to buy tickets doesn't work. Turns out she was just clicking the button before JS has finished hydrating so it did nothing ๐Ÿ™ˆ. Thanks, SSR...
    252K

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

TermsยทPrivacyยทCookiesยทAccessibilityยทAds Infoยทยฉ 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
Advertisement
Advertisement