Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactQueryDevtoolsPanel no longer exists in v5 #7462

Open
marcuslindfeldt opened this issue May 20, 2024 · 0 comments
Open

ReactQueryDevtoolsPanel no longer exists in v5 #7462

marcuslindfeldt opened this issue May 20, 2024 · 0 comments

Comments

@marcuslindfeldt
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant