Skip to content

Devtools UI has flickering bug when query key is too large #9624

@akdlsz21

Description

@akdlsz21

Describe the bug

The devtools panel will oscillate back and forth when a long query hash is selected, rendering the query details.

I have a video demonstrating on my machine.

Your minimal, reproducible example

https://tanstack.com/query/latest/docs/framework/react/examples/basic

Steps to reproduce

  1. Go to https://tanstack.com/query/latest/docs/framework/react/examples/playground?panel=sandbox
  2. input a long query key (for my example it was 120 characters)
  3. reduce the devtools size less than 700px
  4. focus on the long query, revealing the details pane

Expected behavior

As a user, I was expecting the details pane to extend to the contents length

How often does this bug happen?

None

Screenshots or Videos

Screencast.from.2025-09-06.12-24-44.webm

Platform

  • OS: [MacOS, Linux]
  • Browser: Chrome
  • Version: 139

Tanstack Query adapter

react-query

TanStack Query version

v5.86.0

TypeScript version

No response

Additional context

I already have a fix for the issue. Would it be okay for me to create a pull request?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions