# TkDodo

A technical blog about frontend-development, TypeScript and React

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Reliable Query Prefetching with TanStack Router

DevFeed: [Reliable Query Prefetching with TanStack Router](<https://devfeed.tech/articles/reliable-query-prefetching-with-tanstack-router-48229.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/reliable-query-prefetching-with-tanstack-router>)

Published: 2026-08-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Promise](<https://devfeed.tech/topics/promise.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [app](<https://devfeed.tech/tags/app.md>), [components](<https://devfeed.tech/tags/components.md>), [fetching](<https://devfeed.tech/tags/fetching.md>), [pattern](<https://devfeed.tech/tags/pattern.md>), [query](<https://devfeed.tech/tags/query.md>)

### AI overview

This article explains a TanStack Router and TanStack Query pattern for reliable data prefetching. It recommends triggering fetches in route loaders and allowing components to consume the resulting promise, while discussing duplication, synchronization problems, and accidental prefetch mismatches as applications grow.

### Source excerpt

Prefetching in route loaders is great, but comes at a cost. We have to keep loaders in-sync with components...

## TanStack Router and Query

DevFeed: [TanStack Router and Query](<https://devfeed.tech/articles/tanstack-router-and-query-48235.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/tan-stack-router-and-query>)

Published: 2026-05-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [React Router](<https://devfeed.tech/topics/react-router.md>), [React Native](<https://devfeed.tech/topics/react-native.md>)

Tags: [cache](<https://devfeed.tech/tags/cache.md>), [caching](<https://devfeed.tech/tags/caching.md>), [client](<https://devfeed.tech/tags/client.md>), [fetch](<https://devfeed.tech/tags/fetch.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [query](<https://devfeed.tech/tags/query.md>), [react](<https://devfeed.tech/tags/react.md>), [react-router](<https://devfeed.tech/tags/react-router.md>), [router](<https://devfeed.tech/tags/router.md>), [tanstack](<https://devfeed.tech/tags/tanstack.md>)

### AI overview

This tutorial explains how TanStack Router's route-specific cache differs from TanStack Query's global cache. It also describes using route loaders to start queries early, enable prefetching, and avoid duplicate requests.

### Source excerpt

TanStack Router has a built-in cache, so why would we need TanStack Query? There are, of course, reasons ...

## The Vertical Codebase

DevFeed: [The Vertical Codebase](<https://devfeed.tech/articles/the-vertical-codebase-48243.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/the-vertical-codebase>)

Published: 2026-04-13T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [structure](<https://devfeed.tech/topics/structure.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Code](<https://devfeed.tech/topics/code.md>), [Software](<https://devfeed.tech/topics/software.md>), [Tech Debt](<https://devfeed.tech/topics/tech-debt.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [software](<https://devfeed.tech/tags/software.md>), [structure](<https://devfeed.tech/tags/structure.md>), [tech-debt](<https://devfeed.tech/tags/tech-debt.md>)

### AI overview

An argument for organizing codebases vertically by domain instead of horizontally by file type. The article explains how type-based structures become difficult to navigate as products grow, using Sentry as an example, and connects domain-oriented organization with maintainability, tech debt, and effective use of coding agents.

### Source excerpt

Let's take a look at why the common, horizontal code structure is not ideal, where it breaks down, and what we can do about it.

## Test IDs are an a11y smell

DevFeed: [Test IDs are an a11y smell](<https://devfeed.tech/articles/test-ids-are-an-a11y-smell-48236.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/test-ids-are-an-a11y-smell>)

Published: 2026-03-23T00:00:00Z

Content type: opinion

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Playwright](<https://devfeed.tech/topics/playwright.md>), [testing-library](<https://devfeed.tech/topics/testing-library.md>), [Selenium](<https://devfeed.tech/topics/selenium.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [selenium](<https://devfeed.tech/tags/selenium.md>), [test-coverage](<https://devfeed.tech/tags/test-coverage.md>), [testing](<https://devfeed.tech/tags/testing.md>), [testing-library](<https://devfeed.tech/tags/testing-library.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The article argues that test IDs are inferior selectors because users cannot see them and they couple tests to implementation details. It recommends role-based selectors, including those provided by Testing Library and Playwright, and connects this approach to maintainability and accessibility.

### Source excerpt

Users don't use data-testid, so why do your tests?

## Creating Query Abstractions

DevFeed: [Creating Query Abstractions](<https://devfeed.tech/articles/creating-query-abstractions-48186.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/creating-query-abstractions>)

Published: 2026-02-23T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [abstraction](<https://devfeed.tech/topics/abstraction.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [React](<https://devfeed.tech/topics/react.md>), [generic programming](<https://devfeed.tech/topics/generic-programming.md>), [interface](<https://devfeed.tech/topics/interface.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [components](<https://devfeed.tech/tags/components.md>), [generics](<https://devfeed.tech/tags/generics.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [interface](<https://devfeed.tech/tags/interface.md>), [react](<https://devfeed.tech/tags/react.md>), [types](<https://devfeed.tech/tags/types.md>)

### AI overview

The article examines the tradeoffs of creating reusable abstractions around TanStack Query in React and TypeScript. It explains how custom hooks can share logic and preserve consistency, while increasingly flexible parameters can produce difficult interfaces and generic type behavior.

### Source excerpt

Building reusable abstractions on top of libraries that rely on type inference can be deceptively difficult, which is why we need better ways to build those abstractions ...

## Building Type-Safe Compound Components

DevFeed: [Building Type-Safe Compound Components](<https://devfeed.tech/articles/building-type-safe-compound-components-48181.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/building-type-safe-compound-components>)

Published: 2026-01-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Web Development](<https://devfeed.tech/topics/web-development.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>), [Code](<https://devfeed.tech/topics/code.md>), [layout](<https://devfeed.tech/topics/layout.md>)

Tags: [cognitive-load](<https://devfeed.tech/tags/cognitive-load.md>), [components](<https://devfeed.tech/tags/components.md>), [flexibility](<https://devfeed.tech/tags/flexibility.md>), [layout](<https://devfeed.tech/tags/layout.md>), [type](<https://devfeed.tech/tags/type.md>), [type-safety](<https://devfeed.tech/tags/type-safety.md>)

### AI overview

This article examines when compound components are a good fit for component libraries and argues that they are often unsuitable when content must be constrained or generated dynamically. It explains that simpler abstractions can reduce repetitive mapping code while preserving type safety, including through generic components.

### Source excerpt

Compound Components are great, but should be type-safe. No, this isn't about the children prop ...

## 2025 in Review

DevFeed: [2025 in Review](<https://devfeed.tech/articles/2025-in-review-48171.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/2025-in-review>)

Published: 2025-12-26T00:00:00Z

Content type: opinion

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Design system](<https://devfeed.tech/topics/design-system.md>), [Code](<https://devfeed.tech/topics/code.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [apis](<https://devfeed.tech/tags/apis.md>), [code](<https://devfeed.tech/tags/code.md>), [design-engineering](<https://devfeed.tech/tags/design-engineering.md>), [design-system](<https://devfeed.tech/tags/design-system.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [retrospective](<https://devfeed.tech/tags/retrospective.md>), [review](<https://devfeed.tech/tags/review.md>)

### AI overview

A retrospective on a design engineer's 2025 work at Sentry, including joining the Design Engineering team, rolling out a new design system across the platform, improving APIs and documentation, reducing unused code, and making the product faster.

### Source excerpt

A retrospective on what has happened for me in 2025

## Designing Design Systems

DevFeed: [Designing Design Systems](<https://devfeed.tech/articles/designing-design-systems-48188.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/designing-design-systems>)

Published: 2025-12-01T00:00:00Z

Content type: opinion

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Design system](<https://devfeed.tech/topics/design-system.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>)

Tags: [design-engineering](<https://devfeed.tech/tags/design-engineering.md>), [design-system](<https://devfeed.tech/tags/design-system.md>), [design-systems](<https://devfeed.tech/tags/design-systems.md>), [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [engineering](<https://devfeed.tech/tags/engineering.md>)

### AI overview

An experienced engineer explains how design systems depend on more than visual components, including API design, performance, infrastructure, developer experience, education, CI, and maintainable project structure. The article presents a design system as one part of helping teams ship consistent products efficiently.

### Source excerpt

I want to write more about what makes a good design system. This is the unstructured list of principles I think matter.

## Omit for Discriminated Unions in TypeScript

DevFeed: [Omit for Discriminated Unions in TypeScript](<https://devfeed.tech/articles/omit-for-discriminated-unions-in-typescript-48204.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/omit-for-discriminated-unions-in-type-script>)

Published: 2025-11-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [TypeScript](<https://devfeed.tech/topics/typescript.md>), [React](<https://devfeed.tech/topics/react.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [ci](<https://devfeed.tech/tags/ci.md>), [component](<https://devfeed.tech/tags/component.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [react](<https://devfeed.tech/tags/react.md>), [types](<https://devfeed.tech/tags/types.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [union](<https://devfeed.tech/tags/union.md>)

### AI overview

A technical tutorial explains why TypeScript's built-in Omit utility can lose the relationships in discriminated unions. It presents a distributive alternative that preserves those relationships when typing React wrapper components and supports backward-compatible prop changes.

### Source excerpt

Why TypeScript's built-in Omit breaks discriminated unions, and how a distributive version preserves them.

## Tooltip Components Should Not Exist

DevFeed: [Tooltip Components Should Not Exist](<https://devfeed.tech/articles/tooltip-components-should-not-exist-48246.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/tooltip-components-should-not-exist>)

Published: 2025-11-17T00:00:00Z

Content type: opinion

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Design system](<https://devfeed.tech/topics/design-system.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [accessibility](<https://devfeed.tech/tags/accessibility.md>), [design-systems](<https://devfeed.tech/tags/design-systems.md>), [keyboard](<https://devfeed.tech/tags/keyboard.md>), [react](<https://devfeed.tech/tags/react.md>)

### AI overview

This opinion argues that generic tooltip components are often too low-level for design systems and can encourage misuse. It examines accessibility and keyboard-navigation failures, including tooltips attached to non-interactive elements, and contrasts this with React Aria's handling of custom triggers.

### Source excerpt

A look at why tooltip components are often the wrong abstraction in design systems, leading to accessibility issues, misuse, and inconsistent user experiences.

## Context Inheritance in TanStack Router

DevFeed: [Context Inheritance in TanStack Router](<https://devfeed.tech/articles/context-inheritance-in-tanstack-router-48185.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/context-inheritance-in-tan-stack-router>)

Published: 2025-10-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [context](<https://devfeed.tech/topics/context.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [automatically](<https://devfeed.tech/tags/automatically.md>), [children](<https://devfeed.tech/tags/children.md>), [context](<https://devfeed.tech/tags/context.md>), [nested](<https://devfeed.tech/tags/nested.md>), [parent](<https://devfeed.tech/tags/parent.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [route](<https://devfeed.tech/tags/route.md>), [state](<https://devfeed.tech/tags/state.md>), [type](<https://devfeed.tech/tags/type.md>), [types](<https://devfeed.tech/tags/types.md>), [validation](<https://devfeed.tech/tags/validation.md>)

### AI overview

An overview of how TanStack Router inherits and type-infers path parameters, search parameters, and context across nested routes. It explains how parent route definitions become available to child routes and how inherited state is merged.

### Source excerpt

An overview of how TanStack Router automatically shares and infers path params, search params, and context between nested routes in a type-safe way.

## Deriving Client State from Server State

DevFeed: [Deriving Client State from Server State](<https://devfeed.tech/articles/deriving-client-state-from-server-state-48187.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/deriving-client-state-from-server-state>)

Published: 2025-09-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [client](<https://devfeed.tech/topics/client.md>), [data](<https://devfeed.tech/topics/data.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [data](<https://devfeed.tech/tags/data.md>), [effects](<https://devfeed.tech/tags/effects.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [react](<https://devfeed.tech/tags/react.md>), [state](<https://devfeed.tech/tags/state.md>)

### AI overview

A tutorial explains how to derive client state from server state in React so selections remain aligned with changing server data without manual synchronization or effects. The approach retains the original selection and derives the effective value when it is no longer valid.

### Source excerpt

How to use derived state in React to keep client state and server data aligned without manual sync or effects.

## React Query Selectors, Supercharged

DevFeed: [React Query Selectors, Supercharged](<https://devfeed.tech/articles/react-query-selectors-supercharged-48224.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/react-query-selectors-supercharged>)

Published: 2025-08-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [selectors](<https://devfeed.tech/topics/selectors.md>), [state-management](<https://devfeed.tech/topics/state-management.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>)

Tags: [how-to](<https://devfeed.tech/tags/how-to.md>), [react](<https://devfeed.tech/tags/react.md>), [selectors](<https://devfeed.tech/tags/selectors.md>), [state-management](<https://devfeed.tech/tags/state-management.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

This tutorial explains how React Query's select option creates fine-grained subscriptions to derived data while keeping full responses in the cache. It covers avoiding unnecessary component re-renders and compares the approach with Redux selectors, with TypeScript tips.

### Source excerpt

How to get the most out of select, sprinkled with some TypeScript tips.

## When React useCallback and useMemo Are Unnecessary

DevFeed: [When React useCallback and useMemo Are Unnecessary](<https://devfeed.tech/articles/the-useless-usecallback-48242.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/the-useless-use-callback>)

Published: 2025-07-28T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [render](<https://devfeed.tech/topics/render.md>), [function](<https://devfeed.tech/topics/function.md>), [object](<https://devfeed.tech/topics/object.md>)

Tags: [caching](<https://devfeed.tech/tags/caching.md>), [function](<https://devfeed.tech/tags/function.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [object](<https://devfeed.tech/tags/object.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [render](<https://devfeed.tech/tags/render.md>)

### AI overview

The article examines cases where React's useCallback and useMemo provide little value. It explains memoized components, referential stability, Object.is comparisons, rendering, and effect dependencies.

### Source excerpt

Why most memoization is downright useless...

## The Beauty of TanStack Router

DevFeed: [The Beauty of TanStack Router](<https://devfeed.tech/articles/the-beauty-of-tanstack-router-48238.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/the-beauty-of-tan-stack-router>)

Published: 2025-05-25T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Web app](<https://devfeed.tech/topics/webapp.md>)

Tags: [router](<https://devfeed.tech/tags/router.md>), [routing](<https://devfeed.tech/tags/routing.md>), [tanstack](<https://devfeed.tech/tags/tanstack.md>), [type](<https://devfeed.tech/tags/type.md>), [type-safety](<https://devfeed.tech/tags/type-safety.md>)

### AI overview

An overview of why the author chose TanStack Router after evaluating routing options while merging two applications. The article highlights its routing capabilities, TypeScript integration, inferred type safety, client-side transitions, and developer experience.

### Source excerpt

Yes, it's type-safe, but there's so much more to love about TanStack Router.

## Concurrent Optimistic Updates in React Query

DevFeed: [Concurrent Optimistic Updates in React Query](<https://devfeed.tech/articles/concurrent-optimistic-updates-in-react-query-48184.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/concurrent-optimistic-updates-in-react-query>)

Published: 2025-04-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [concurrent](<https://devfeed.tech/tags/concurrent.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [race-conditions](<https://devfeed.tech/tags/race-conditions.md>), [react](<https://devfeed.tech/tags/react.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

A tutorial on implementing optimistic UI updates in React Query when multiple mutations affect the same entity concurrently. It explains how client-side predictions can diverge from server results and how filtering and category changes create edge cases.

### Source excerpt

How to build optimistic UI that is resilient to race conditions, even when multiple mutations update the same entity concurrently.

## My Open Source Origin Story

DevFeed: [My Open Source Origin Story](<https://devfeed.tech/articles/my-open-source-origin-story-48200.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/my-open-source-origin-story>)

Published: 2025-03-31T00:00:00Z

Content type: opinion

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Open Source](<https://devfeed.tech/topics/open-source.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Tech Lead](<https://devfeed.tech/topics/tech-lead.md>), [Code review](<https://devfeed.tech/topics/code-review.md>), [React](<https://devfeed.tech/topics/react.md>), [React Router](<https://devfeed.tech/topics/react-router.md>)

Tags: [code-reviews](<https://devfeed.tech/tags/code-reviews.md>), [development](<https://devfeed.tech/tags/development.md>), [discord](<https://devfeed.tech/tags/discord.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [react](<https://devfeed.tech/tags/react.md>), [react-router](<https://devfeed.tech/tags/react-router.md>), [tech-lead](<https://devfeed.tech/tags/tech-lead.md>)

### AI overview

A personal account of how the author became involved in open source and React Query. It describes joining the TanStack community, starting a blog to support code reviews, and participating in community discussions and problem-solving.

### Source excerpt

A brief story of how I got into Open Source

## 2024 in Review

DevFeed: [2024 in Review](<https://devfeed.tech/articles/2024-in-review-48170.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/2024-in-review>)

Published: 2024-12-29T00:00:00Z

Content type: opinion

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Data Management](<https://devfeed.tech/topics/data-management.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [App](<https://devfeed.tech/topics/app.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>), [state-management](<https://devfeed.tech/topics/state-management.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [coding](<https://devfeed.tech/tags/coding.md>), [data-management](<https://devfeed.tech/tags/data-management.md>), [retrospective](<https://devfeed.tech/tags/retrospective.md>), [routing](<https://devfeed.tech/tags/routing.md>), [state-management](<https://devfeed.tech/tags/state-management.md>), [ux](<https://devfeed.tech/tags/ux.md>)

### AI overview

A retrospective on the author's personal and professional experiences in 2024, including an injury, running, company layoffs, a product sunset, and architectural decisions for a new single-page application using TanStack Router and TanStack Query.

### Source excerpt

A retrospective on what has happened for me in 2024

## React Query - The Bad Parts

DevFeed: [React Query - The Bad Parts](<https://devfeed.tech/articles/react-query-the-bad-parts-48225.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/react-query-the-bad-parts>)

Published: 2024-12-28T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>)

Tags: [library](<https://devfeed.tech/tags/library.md>), [react](<https://devfeed.tech/tags/react.md>)

### AI overview

A talk examining React Query's less favorable aspects, limitations, trade-offs, and situations where it may not be the best fit.

### Source excerpt

In this talk, maintainer Dominik will explore the other side--the less favorable aspects of React Query and situations where it may not be the best fit. No library is perfect; every choice involves trade-offs. By the end of this talk, you'll have a better understanding of React Query's limitations and why it remains a compelling choice despite them.

## Ref Callbacks, React 19 and the Compiler

DevFeed: [Ref Callbacks, React 19 and the Compiler](<https://devfeed.tech/articles/ref-callbacks-react-19-and-the-compiler-48226.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/ref-callbacks-react-19-and-the-compiler>)

Published: 2024-12-08T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [callback](<https://devfeed.tech/topics/callback.md>)

Tags: [callback](<https://devfeed.tech/tags/callback.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [performance](<https://devfeed.tech/tags/performance.md>), [react](<https://devfeed.tech/tags/react.md>)

### AI overview

An article revisiting callback refs in React 19, including how the React Compiler changes the author's thinking about useCallback and when callback functions should be moved outside components. It also discusses using refs to interact with DOM nodes and store measurements in React state.

### Source excerpt

Reflecting on useCallback, how the Compiler changed my thinking about it, and what React 19 has in store for Ref Callbacks...

## My Slow Retreat from Twitter

DevFeed: [My Slow Retreat from Twitter](<https://devfeed.tech/articles/my-slow-retreat-from-twitter-48201.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/my-slow-retreat-from-twitter>)

Published: 2024-12-03T00:00:00Z

Content type: opinion

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [X (Twitter)](<https://devfeed.tech/topics/twitter.md>), [React](<https://devfeed.tech/topics/react.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [open-source](<https://devfeed.tech/tags/open-source.md>), [opinion](<https://devfeed.tech/tags/opinion.md>), [react](<https://devfeed.tech/tags/react.md>), [twitter](<https://devfeed.tech/tags/twitter.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

The author reflects on gradually stepping back from Twitter after years of blogging, contributing to open source, and sharing software development content. Twitter helped amplify advanced React, TypeScript, and React Query writing, but the author increasingly dislikes the platform's negativity and attention dynamics.

### Source excerpt

A brief reflection on the platform and how I plan to continue with it...

## React Query API Design - Lessons Learned

DevFeed: [React Query API Design - Lessons Learned](<https://devfeed.tech/articles/react-query-api-design-lessons-learned-48217.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/react-query-api-design-lessons-learned>)

Published: 2024-10-25T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-design](<https://devfeed.tech/tags/api-design.md>), [dx](<https://devfeed.tech/tags/dx.md>), [mistakes](<https://devfeed.tech/tags/mistakes.md>), [react](<https://devfeed.tech/tags/react.md>), [tradeoffs](<https://devfeed.tech/tags/tradeoffs.md>)

### AI overview

A talk transcript about the API design choices behind React Query, including developer experience, tradeoffs, mistakes, and lessons learned.

### Source excerpt

In this talk, React Query maintainer Dominik will walk us through some of the API design choices that were made in React Query to get to that DX. You'll hear stories about things that went well, but also about tradeoffs and mistakes that were made, and what lessons we can all learn from those.

## Component Composition is great btw

DevFeed: [Component Composition is great btw](<https://devfeed.tech/articles/component-composition-is-great-btw-48183.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/component-composition-is-great-btw>)

Published: 2024-09-21T00:00:00Z

Content type: opinion

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Code](<https://devfeed.tech/topics/code.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [component](<https://devfeed.tech/tags/component.md>), [composition](<https://devfeed.tech/tags/composition.md>), [react](<https://devfeed.tech/tags/react.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

The article argues that React's component composition is a major advantage and that developers should establish cohesive component boundaries before relying heavily on conditional rendering.

### Source excerpt

Component composition is one of the best parts of React, and I think we should take more time to break our components into manageable parts before littering one component with conditional renderings.

## How Infinite Queries work

DevFeed: [How Infinite Queries work](<https://devfeed.tech/articles/how-infinite-queries-work-48195.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/how-infinite-queries-work>)

Published: 2024-09-14T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [bug](<https://devfeed.tech/topics/bug.md>), [retry](<https://devfeed.tech/topics/retry.md>), [cancellation](<https://devfeed.tech/topics/cancellation.md>), [class](<https://devfeed.tech/topics/class.md>)

Tags: [bugs](<https://devfeed.tech/tags/bugs.md>), [cancellation](<https://devfeed.tech/tags/cancellation.md>), [infinite](<https://devfeed.tech/tags/infinite.md>), [react](<https://devfeed.tech/tags/react.md>), [retry](<https://devfeed.tech/tags/retry.md>)

### AI overview

An article examines a React Query bug involving infinite queries, partial page-fetch failures, and retries. It explains the architectural behavior behind query state, caching, deduplication, and promise reuse.

### Source excerpt

A serious bug report about infinite queries led me to question it's architecture, but it all turned out fine in the end ...

[Next page](<https://devfeed.tech/sources/tkdodo-s-blog.md?cursor=WyIyMDI0LTA5LTE0VDAwOjAwOjAwKzAwOjAwIiwgIjZkYzA0YzBlLTM1OGQtNDczYS05NmQyLTk1NzYzMjIzMjFmOSJd>)