Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/neat-peaches-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/devtools-utils': patch
---

fix: panel issue fix
5 changes: 5 additions & 0 deletions .changeset/thin-pianos-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/devtools-utils': patch
---

revert panel generation
3 changes: 1 addition & 2 deletions packages/devtools-utils/src/preact/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export function createPreactPanel<
const devToolRef = useRef<HTMLDivElement>(null)
const devtools = useRef<TCoreDevtoolsClass | null>(null)
useEffect(() => {
if (devtools.current) return

devtools.current = new CoreClass()

if (devToolRef.current) {
Expand All @@ -45,6 +43,7 @@ export function createPreactPanel<
return () => {
if (devToolRef.current) {
devtools.current?.unmount()
devtools.current = null
}
}
}, [props?.theme])
Expand Down
3 changes: 1 addition & 2 deletions packages/devtools-utils/src/react/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export function createReactPanel<
const devToolRef = useRef<HTMLDivElement>(null)
const devtools = useRef<TCoreDevtoolsClass | null>(null)
useEffect(() => {
if (devtools.current) return

devtools.current = new CoreClass()

if (devToolRef.current) {
Expand All @@ -43,6 +41,7 @@ export function createReactPanel<
return () => {
if (devToolRef.current) {
devtools.current?.unmount()
devtools.current = null
}
}
}, [props?.theme])
Expand Down
Loading