Skip to content
Source
Sign inSign up
TanStack/query

ReactQueryDevtoolsPanel no longer exists in v5 #7462

Send to my agent
Closedmarcuslindfeldt(GitHub profile, opens in a new tab) opened this issue 2 comments

Describe the bug

More of an undocumented regression. In v4 you could import ReactQueryDevtoolsPanel like so import { ReactQueryDevtoolsPanel } from "@tanstack/react-query-devtools"; and use it as a controlled component. This is good for anyone that builds their own devtools and don't want multiple devtools buttons taking up space in the dev environment.

This is no longer possible in v5 and there is no mention of this breaking change.

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/musing-roman-s8thth

Steps to reproduce

  1. try and import ReactQueryDevtoolsPanel with import { ReactQueryDevtoolsPanel } from "@tanstack/react-query-devtools";
  2. Watch it fail

Expected behavior

  1. try and import ReactQueryDevtoolsPanel with import { ReactQueryDevtoolsPanel } from "@tanstack/react-query-devtools";
  2. Watch it succeed 😉

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: MacOS
  • Browser: Chrome
  • Version: 124.0.6367.62

Tanstack Query adapter

react-query

TanStack Query version

5.36.2

TypeScript version

5.2.2

Additional context

No response

  1. we know about this, and @ardeora has it on his list of things to add:

  2. TkDodo added labelspackage: query-devtools

  3. TkDodo assignedardeora

  4. This was fixed by a contribution from @toofff in v5.54.0! 🎉

Sign in to join this conversation.