unstale

npm / @tanstack/react-query-devtools

@tanstack/react-query-devtools

What changed in @tanstack/react-query-devtools 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-23.

2 breaking1 new APIs and options1 performance1 behavior and defaults2 tooling4 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@tanstack/react-query-devtools 510 changes

Breaking changes 1

  • Rename the query option cacheTime to gcTime in defaultOptions.queries.

    5.0.0upgrade guide

New APIs and options 1

  • Allows passing a theme via a prop in the devtools component.

    5.91.0release notes

Performance 1

  • The devtools instance is created only once instead of on every render.

    5.104.4release notes

Behavior and default changes 1

  • Inline panels fill their container's height; when the container has no set height, they default to 500px.

    5.106.0release notes

Tooling 2

  • Declare @types/react as an optional peer dependency.

    5.104.4release notes

  • React types used by React Query Devtools are now declared as a peer dependency compatible with React 18 and 19.

    5.103.0release notes

Fixes and other changes 4

  • The devtools always render left-to-right, regardless of page direction or browser language.

    5.106.1release notes

  • Published devtools source and type declarations now declare their dependencies for compatibility with strict package managers, while runtime dependencies remain bundled.

    5.103.0release notes

  • Changed the onClose callback type from () => unknown to () => void.

    5.100.4release notes

  • Resolved an issue involving the excluded build directory.

    5.94.5release notes

@tanstack/react-query-devtools 41 changes

Breaking changes 1

  • Devtools are installed as a separate package and imported from @tanstack/react-query-devtools instead of react-query/devtools.

    4.0.0upgrade guide