Skip to content

docs(framework/{preact,solid}/devtools): add the 'Embedded Mode' section#10853

Merged
sukvvon merged 1 commit into
mainfrom
docs/framework-preact-solid-devtools-embedded-mode
Jun 1, 2026
Merged

docs(framework/{preact,solid}/devtools): add the 'Embedded Mode' section#10853
sukvvon merged 1 commit into
mainfrom
docs/framework-preact-solid-devtools-embedded-mode

Conversation

@sukvvon
Copy link
Copy Markdown
Collaborator

@sukvvon sukvvon commented Jun 1, 2026

🎯 Changes

Add the ## Embedded Mode section to the Preact and Solid devtools docs, mirroring the section that already exists for React and Vue.

Both adapters expose a DevtoolsPanel component (PreactQueryDevtoolsPanel, SolidQueryDevtoolsPanel), but the Embedded Mode usage and options were never documented. Users had to discover the component and infer its options from the source.

The new sections follow the same shape as the React/Vue sections:

  • a short explanation of what Embedded Mode does
  • a copy-pasteable usage example (using useState from preact/hooks for Preact, and createSignal + Show for Solid)
  • an ### Options list covering style, onClose, client, errorTypes, styleNonce, shadowDOMTarget, and theme

The option types use each adapter's own type alias (CSSProperties for Preact, JSX.CSSProperties for Solid) to match the production components.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with `pnpm run test:pr`.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

Documentation

  • Added Embedded Mode documentation for Preact Query and Solid Query devtools, covering how to embed devtools panels directly into your application with configuration options for custom styling, theming, error handling, lifecycle callbacks, and Shadow DOM integration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

Documentation for Embedded Mode is added to both Preact and Solid framework devtools guides. Each includes a code example showing conditional panel rendering and a configuration reference documenting styling, callbacks, client options, error types, security settings, and theming.

Changes

Embedded Mode DevTools Documentation

Layer / File(s) Summary
Preact Embedded Mode documentation
docs/framework/preact/devtools.md
Preact devtools documentation introduces Embedded Mode with a component example showing conditional PreactQueryDevtoolsPanel rendering and complete option reference including style, onClose, client, errorTypes, styleNonce, shadowDOMTarget, and theme.
Solid Embedded Mode documentation
docs/framework/solid/devtools.md
Solid devtools documentation introduces Embedded Mode with a code example showing conditional SolidQueryDevtoolsPanel rendering via createSignal and Show, plus identical option documentation for styling, handlers, client, error types, security, DOM targeting, and theming.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A devtools guide grows with embedded grace,
Panel and Solid, each find their place,
No floats, just state—conditional care,
Preact and friends, now documented fair!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding Embedded Mode documentation sections to Preact and Solid devtools files.
Description check ✅ Passed The description follows the template structure completely with detailed changes, completed checklist items, and clear release impact indication.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/framework-preact-solid-devtools-embedded-mode

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Jun 1, 2026

View your CI Pipeline Execution ↗ for commit 3cc8772

Command Status Duration Result
nx run-many --target=build --exclude=examples/*... ✅ Succeeded <1s View ↗
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 27s View ↗

☁️ Nx Cloud last updated this comment at 2026-06-01 02:37:45 UTC

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

🚀 Changeset Version Preview

2 package(s) bumped directly, 23 bumped as dependents.

🟩 Patch bumps

Package Version Reason
@tanstack/lit-query 0.2.6 → 0.2.7 Changeset
@tanstack/query-devtools 5.100.14 → 5.100.15 Changeset
@tanstack/angular-query-experimental 5.100.14 → 5.100.15 Dependent
@tanstack/angular-query-persist-client 5.100.14 → 5.100.15 Dependent
@tanstack/eslint-plugin-query 5.100.14 → 5.100.15 Dependent
@tanstack/preact-query 5.100.14 → 5.100.15 Dependent
@tanstack/preact-query-devtools 5.100.14 → 5.100.15 Dependent
@tanstack/preact-query-persist-client 5.100.14 → 5.100.15 Dependent
@tanstack/query-async-storage-persister 5.100.14 → 5.100.15 Dependent
@tanstack/query-broadcast-client-experimental 5.100.14 → 5.100.15 Dependent
@tanstack/query-core 5.100.14 → 5.100.15 Dependent
@tanstack/query-persist-client-core 5.100.14 → 5.100.15 Dependent
@tanstack/query-sync-storage-persister 5.100.14 → 5.100.15 Dependent
@tanstack/react-query 5.100.14 → 5.100.15 Dependent
@tanstack/react-query-devtools 5.100.14 → 5.100.15 Dependent
@tanstack/react-query-next-experimental 5.100.14 → 5.100.15 Dependent
@tanstack/react-query-persist-client 5.100.14 → 5.100.15 Dependent
@tanstack/solid-query 5.100.14 → 5.100.15 Dependent
@tanstack/solid-query-devtools 5.100.14 → 5.100.15 Dependent
@tanstack/solid-query-persist-client 5.100.14 → 5.100.15 Dependent
@tanstack/svelte-query 6.1.33 → 6.1.34 Dependent
@tanstack/svelte-query-devtools 6.1.33 → 6.1.34 Dependent
@tanstack/svelte-query-persist-client 6.1.33 → 6.1.34 Dependent
@tanstack/vue-query 5.100.14 → 5.100.15 Dependent
@tanstack/vue-query-devtools 6.1.33 → 6.1.34 Dependent

@sukvvon sukvvon self-assigned this Jun 1, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/framework/preact/devtools.md`:
- Line 94: The sentence describing "Embedded mode" is misleading by saying it
"will show the development tools as a fixed element"; update the text for the
Embedded mode description to state that the panel is rendered into a container
you provide rather than implying CSS fixed positioning — for example, replace
"fixed element" with wording such as "rendered inside a container you place in
your app" or "embedded into a normal container you provide (not a fixed-position
overlay by default)" so it accurately reflects the behavior of Embedded mode.
- Around line 117-137: The Embedded Mode options list is missing the
hideDisabledQueries prop used by PreactQueryDevtoolsPanel; add an entry
documenting hideDisabledQueries?: boolean, describe that when true it hides
disabled queries from the panel (when false or omitted they are shown), include
the default behavior (if none specified in PreactQueryDevtoolsPanel clarify
default is false or match the component's default), and reference the prop name
and component (PreactQueryDevtoolsPanel) so readers can find the implementation.

In `@docs/framework/solid/devtools.md`:
- Around line 119-139: The docs options table is missing the hideDisabledQueries
prop used by SolidQueryDevtoolsPanel; add an entry for `hideDisabledQueries?:
boolean` to the Options list (near other props like client and theme),
describing that it toggles whether disabled queries are hidden in Embedded Mode,
include the default value (e.g. `false`) and a short example, and ensure the
name matches the prop in packages/solid-query-devtools/src/devtoolsPanel.tsx
(SolidQueryDevtoolsPanel / hideDisabledQueries) so the docs reflect the actual
API.
- Line 94: Update the sentence that currently reads "Embedded mode will show the
development tools as a fixed element in your application, so you can use our
panel in your own development tools." to remove the phrase "fixed element" and
clarify that the panel is rendered/mounted into the container you provide; e.g.,
say "Embedded mode renders the development tools inside the container you
provide, so you can use our panel within your own development tools" to avoid
implying fixed positioning.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e450cbe3-56c1-4f88-a0b6-6c5134adff47

📥 Commits

Reviewing files that changed from the base of the PR and between 1114d0b and 3cc8772.

📒 Files selected for processing (2)
  • docs/framework/preact/devtools.md
  • docs/framework/solid/devtools.md


## Embedded Mode

Embedded mode will show the development tools as a fixed element in your application, so you can use our panel in your own development tools.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Embedded Mode description is behaviorally inaccurate.

“fixed element” is misleading here: the panel renders into a normal container where you place it, not as a fixed-position overlay by default. Please reword to avoid implying CSS fixed positioning.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/framework/preact/devtools.md` at line 94, The sentence describing
"Embedded mode" is misleading by saying it "will show the development tools as a
fixed element"; update the text for the Embedded mode description to state that
the panel is rendered into a container you provide rather than implying CSS
fixed positioning — for example, replace "fixed element" with wording such as
"rendered inside a container you place in your app" or "embedded into a normal
container you provide (not a fixed-position overlay by default)" so it
accurately reflects the behavior of Embedded mode.

Comment on lines +117 to +137
### Options

- `style?: CSSProperties`
- Custom styles for the devtools panel
- Default: `{ height: '500px' }`
- Example: `{ height: '100%' }`
- Example: `{ height: '100%', width: '100%' }`
- `onClose?: () => void`
- Callback function that is called when the devtools panel is closed
- `client?: QueryClient`,
- Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.
- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]`
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
- `styleNonce?: string`
- Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
- `shadowDOMTarget?: ShadowRoot`
- Default behavior will apply the devtool's styles to the head tag within the DOM.
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
- `theme?: "light" | "dark" | "system"`
- Defaults to `system`.
- Set this to change the theme of the devtools panel.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Embedded options list is missing a supported panel prop (hideDisabledQueries).

PreactQueryDevtoolsPanel supports hideDisabledQueries?: boolean (see packages/preact-query-devtools/src/PreactQueryDevtoolsPanel.tsx), but it is not documented in this new Embedded Mode options section.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/framework/preact/devtools.md` around lines 117 - 137, The Embedded Mode
options list is missing the hideDisabledQueries prop used by
PreactQueryDevtoolsPanel; add an entry documenting hideDisabledQueries?:
boolean, describe that when true it hides disabled queries from the panel (when
false or omitted they are shown), include the default behavior (if none
specified in PreactQueryDevtoolsPanel clarify default is false or match the
component's default), and reference the prop name and component
(PreactQueryDevtoolsPanel) so readers can find the implementation.


## Embedded Mode

Embedded mode will show the development tools as a fixed element in your application, so you can use our panel in your own development tools.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Embedded Mode wording suggests incorrect layout behavior.

“fixed element” is not accurate for this panel; it mounts into the container you render. Please adjust wording to avoid implying fixed positioning.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/framework/solid/devtools.md` at line 94, Update the sentence that
currently reads "Embedded mode will show the development tools as a fixed
element in your application, so you can use our panel in your own development
tools." to remove the phrase "fixed element" and clarify that the panel is
rendered/mounted into the container you provide; e.g., say "Embedded mode
renders the development tools inside the container you provide, so you can use
our panel within your own development tools" to avoid implying fixed
positioning.

Comment on lines +119 to +139
### Options

- `style?: JSX.CSSProperties`
- Custom styles for the devtools panel
- Default: `{ height: '500px' }`
- Example: `{ height: '100%' }`
- Example: `{ height: '100%', width: '100%' }`
- `onClose?: () => void`
- Callback function that is called when the devtools panel is closed
- `client?: QueryClient`,
- Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.
- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]`
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
- `styleNonce?: string`
- Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
- `shadowDOMTarget?: ShadowRoot`
- Default behavior will apply the devtool's styles to the head tag within the DOM.
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
- `theme?: "light" | "dark" | "system"`
- Defaults to `system`.
- Set this to change the theme of the devtools panel.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Options docs omit hideDisabledQueries for SolidQueryDevtoolsPanel.

hideDisabledQueries?: boolean exists in packages/solid-query-devtools/src/devtoolsPanel.tsx but isn’t listed in this Embedded Mode options table.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/framework/solid/devtools.md` around lines 119 - 139, The docs options
table is missing the hideDisabledQueries prop used by SolidQueryDevtoolsPanel;
add an entry for `hideDisabledQueries?: boolean` to the Options list (near other
props like client and theme), describing that it toggles whether disabled
queries are hidden in Embedded Mode, include the default value (e.g. `false`)
and a short example, and ensure the name matches the prop in
packages/solid-query-devtools/src/devtoolsPanel.tsx (SolidQueryDevtoolsPanel /
hideDisabledQueries) so the docs reflect the actual API.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 1, 2026

More templates

@tanstack/angular-query-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-experimental@10853

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@10853

@tanstack/lit-query

npm i https://pkg.pr.new/@tanstack/lit-query@10853

@tanstack/preact-query

npm i https://pkg.pr.new/@tanstack/preact-query@10853

@tanstack/preact-query-devtools

npm i https://pkg.pr.new/@tanstack/preact-query-devtools@10853

@tanstack/preact-query-persist-client

npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@10853

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@10853

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@10853

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@10853

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@10853

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@10853

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@10853

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@10853

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@10853

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@10853

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@10853

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@10853

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@10853

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@10853

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@10853

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@10853

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@10853

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@10853

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@10853

commit: 3cc8772

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

size-limit report 📦

Path Size
react full 12.11 KB (0%)
react minimal 9.08 KB (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant