Devtools breaks react-resizable-panels cursor after remount
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 499
- 派生
- 100
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 4
描述
TanStack Devtools version
0.10.12
Framework/Library version
React 19.2.8
Describe the bug and the steps to reproduce it
With TanStack Devtools mounted, remounting a react-resizable-panels Group breaks its hover cursor.
Steps: render Devtools alongside a Group with two Panels and a Separator. Wait for Devtools to load, then change only the Group's key and hover the separator.
Confirmed locally in Electron using these minimal components:
- Initial mount: resize listener runs before Solid; cursor is
ew-resize. - After remount: Solid runs first; hover is detected, but cursor stays
auto.
Solid's delegated pointermove handler leaves event.currentTarget pointing to <html> instead of document. The resize library then skips cursor styling because currentTarget.defaultView is undefined.
Remounting is normal React behavior. Devtools should not change native event properties for unrelated listeners. Is this best addressed here or upstream in Solid?
Versions: @tanstack/react-devtools 0.10.12, solid-js 1.9.15, react-resizable-panels 4.12.3, React 19.2.8, Electron 44.1.0 (macOS).
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://stackblitz.com/edit/vitejs-vite-eha3ugdo?file=src%2FApp.tsx,package.json&terminal=dev
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 StackBlitz 复现开始,重点查看 src/App.tsx 和 package.json,并在更改 Group 键后复现光标故障。跟踪 issue 中描述的 Devtools 和 Solid 事件处理,然后确定修复应放在这里还是 upstream。完成的标准是 remount 后分隔符光标仍能正常工作,同时不更改无关 listener 的原生事件属性。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- electron, react, typescript
- 领域
- desktop, devtools, frontend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100