From 1854eba21686ae4ad7e90140b9e9e3360ed6c02c Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Tue, 6 Jan 2026 13:38:45 +0100 Subject: [PATCH 1/2] revert panel issue --- packages/devtools-utils/src/react/panel.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/devtools-utils/src/react/panel.tsx b/packages/devtools-utils/src/react/panel.tsx index cfc82f79..274ff8b3 100644 --- a/packages/devtools-utils/src/react/panel.tsx +++ b/packages/devtools-utils/src/react/panel.tsx @@ -32,16 +32,18 @@ export function createReactPanel< const devToolRef = useRef(null) const devtools = useRef(null) useEffect(() => { - const instance = new CoreClass() - devtools.current = instance + if (devtools.current) return + + devtools.current = new CoreClass() if (devToolRef.current) { - instance.mount(devToolRef.current, props?.theme ?? 'dark') + devtools.current.mount(devToolRef.current, props?.theme ?? 'dark') } return () => { - instance.unmount() - devtools.current = null + if (devToolRef.current) { + devtools.current?.unmount() + } } }, [props?.theme]) From c1e6cc84f59abb3e51e147d56a7b706ef9ff7145 Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Tue, 6 Jan 2026 13:39:17 +0100 Subject: [PATCH 2/2] changeset --- .changeset/thin-pianos-rhyme.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/thin-pianos-rhyme.md diff --git a/.changeset/thin-pianos-rhyme.md b/.changeset/thin-pianos-rhyme.md new file mode 100644 index 00000000..2e9e0d70 --- /dev/null +++ b/.changeset/thin-pianos-rhyme.md @@ -0,0 +1,5 @@ +--- +'@tanstack/devtools-utils': patch +--- + +revert panel generation