Devtools breaks react-resizable-panels cursor after remount
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 499
- Forks
- 100
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 4
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la reproducción en StackBlitz, especialmente con src/App.tsx y package.json, y reproduce el fallo del cursor después de cambiar la clave Group. Sigue el manejo de eventos de Devtools y Solid descrito en el issue y determina después si el fix corresponde aquí o upstream. Se considera terminado cuando, tras volver a montar, el cursor del separador sigue funcionando sin cambiar las propiedades de eventos nativos para listeners no relacionados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- electron, react, typescript
- Área
- desktop, devtools, frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100