Skip to content
Source
Sign inSign up
TanStack/devtools

fix(preact): Unmount panels on Preact 11 and pass app context to plugins #551

MergedKevinVandymerged 4 commits intomain fromrefs/pull/551/headmerged by KevinVandy View on GitHub

Showing 14 changed files with 11 additions and 1 deletion (loading 10).

x
0 of 14 viewed, 14 left
5 additions and 0 deletions.changeset/devtools-utils-preact-11-unmount.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/devtools-utils': patch
+---
+​
+Unmount the devtools core when a Preact panel unmounts on Preact 11. Preact 11 clears refs before effect cleanups run, so the panel skipped `unmount()`.
5 additions and 0 deletions.changeset/preact-devtools-plugin-context.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/preact-devtools': patch
+---
+​
+Plugins, titles and custom triggers now see the context of the app that renders `<TanStackDevtools>`, so a plugin like `<PreactQueryDevtoolsPanel />` finds its `QueryClientProvider`. They used to render in a separate root with no context.
1 addition and 1 deletione2e/apps/preact/package.jsonModified
View file
@@ -12,7 +12,7 @@
"dependencies": {
"@tanstack/devtools-e2e": "workspace:*",
"@tanstack/preact-devtools": "workspace:*",
- "preact": "^10.28.0"
+ "preact": "^11.0.1"
},
"devDependencies": {
"@playwright/test": "^1.49.0",
examples/preact/basic/src/package-json-panel.tsxModified
View file
Loading the diff