Repository navigation
fix(devtools-utils): Unmount Preact panels on Preact 11 - #551
KevinVandy wants to merge 3 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: f1c68aa The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit d8609b2
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/angular-devtools
@tanstack/devtools
@tanstack/devtools-a11y
@tanstack/devtools-bundler-core
@tanstack/devtools-client
@tanstack/devtools-rspack
@tanstack/devtools-ui
@tanstack/devtools-utils
@tanstack/devtools-vite
@tanstack/devtools-webmcp
@tanstack/devtools-event-bus
@tanstack/devtools-event-client
@tanstack/preact-devtools
@tanstack/react-devtools
@tanstack/solid-devtools
@tanstack/svelte-devtools
@tanstack/vue-devtools
commit: |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
createPreactPanelreads the panel's element when the effect runs and checks that saved value in the cleanup. It used to readdevToolRef.currentin the cleanup. Preact 11 clears refs before effect cleanups run, so on Preact 11 the panel never calledunmount()on the devtools core.src/preact/panel.test.ts. It fails without the fix on Preact 11, and passes with it on Preact 10 and 11.@tanstack/devtools-utils.preactdev dependency goes to^11.0.1inpreact-devtoolsand the Preact examples.devtools-utilsanddevtools-a11yget apreact^11.0.1dev dependency, so their tests run on Preact 11 rather than the auto-installed Preact 10 peer. The peer ranges are unchanged (>=10.0.0).Notes
createReactPaneluses the same ref check in its cleanup. React also clears refs before passive effect cleanups, so it likely has the same leak. This PR doesn't change it, because the React panel has other in-progress changes.🤖 Generated with Claude Code