TanStack/query

Query DevTools is not isolated

开放

#9,681 创建于 2025年9月24日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (3,817 个派生)batch import
help wantedpackage: query-devtools

仓库指标

星标
 (49,427 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Describe the bug

If we have multiple instances of Query DevTools, actions on one affect the other instance.

Your minimal, reproducible example

https://stackblitz.com/edit/tanstack-react-query-dev-tools-issue?file=README.md

Steps to reproduce

Open the example on the provided link

  1. Open the devtools
  2. Click on Query A and Query B to see both dev tools panels (each has its own query client)
  3. Click on a query on Query A
  4. Click on a query on Query B
    1. We see that the previous panel's details are hidden
  5. Press trigger loading (or any other query option)
    1. We see the same query details on both panels now

Expected behavior

Each query devtools should be isolated and actions in one should not affect the other one

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: Linux
  • Browser: Brave

Tanstack Query adapter

react-query

TanStack Query version

v5.76.1

TypeScript version

No response

Additional context

No response

贡献者指南