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

Closed
marcuslindfeldt opened this issue May 20, 2024 · 2 comments
Closed

ReactQueryDevtoolsPanel no longer exists in v5 #7462

marcuslindfeldt opened this issue May 20, 2024 · 2 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

@TkDodo
Copy link
Collaborator

TkDodo commented Jul 15, 2024

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

@Ephem
Copy link
Collaborator

Ephem commented Oct 4, 2024

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

@Ephem Ephem closed this as completed Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants