fix(devtools-solid): mounting devtools removes the rendered content
Maintainers usually reply within 2 days
@monsterlag is already working on this.
Since Oct 21, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start by reproducing the documented sibling mount from packages/devtools-solid/README.md, then inspect ElementRendererContent in packages/solid/src/renderer.tsx and the devtools-solid adapter. Compare the DOM with and without devtools activation using the one-element spec. Done means the rendered text remains visible when JsonRenderDevtools is mounted, with the existing inspection behavior preserved.
Written by the indexing model from the issue text.
Description
Summary
Adding the documented drop-in JsonRenderDevtools sibling to a Solid renderer removes the visible content of a one-element spec. The renderer becomes an empty keyed span without a browser exception.
Steps to reproduce
- Create a Vite consumer with
vite-plugin-solidand install@json-render/[email protected],@json-render/[email protected],@json-render/[email protected],[email protected], and[email protected]. - Mount this component in the browser.
import { render } from "solid-js/web";
import { JSONUIProvider, Renderer } from "@json-render/solid";
import { JsonRenderDevtools } from "@json-render/devtools-solid";
const registry = { Text: (ctx) => <p>{ctx.element.props.text}</p> };
const spec = {
root: "text",
elements: { text: { type: "Text", props: { text: "Visible renderer" } } },
};
render(() => (
<JSONUIProvider registry={registry}>
<Renderer spec={spec} registry={registry} />
<JsonRenderDevtools spec={spec} />
</JSONUIProvider>
), document.getElementById("app"));
- Inspect the application content after the devtools toggle mounts. Repeat after removing the
JsonRenderDevtoolssibling.
Expected behavior
Both runs show Visible renderer. Enabling devtools may add inspection attributes or wrappers, but it must preserve the renderer's content. That differential is the closure signal.
Actual behavior
Without devtools, the application contains <p>Visible renderer</p>. With the drop-in devtools component, it contains <span style="display:contents" data-jr-key="text"></span> and no text. Both runs have zero page errors. A third control that calls markDevtoolsActive() before mounting restores the text inside the keyed span.
Affected area
Solid renderer devtools activation and the @json-render/devtools-solid adapter.
Runtime or environment
Reproduced with all json-render packages at 0.21.0, Node v22.23.2, solid-js 1.9.15, vite-plugin-solid 2.11.10, Vite 6.4.3, Playwright 1.58.2, and Chromium 145.0.7632.6. The same differential was previously observed with Vite 7.3.1. Inspected source revision is fc2a696a50a30cb30c878ab1eb65e102487eea0f.
Evidence
The adapter README documents the sibling mount used above. ElementRendererContent places a cached rendered value in the fallback and active wrapper branches of Show. The browser differential isolates the behavior to devtools activation with one renderer component and one spec element.
Impact
The documented devtools integration makes an otherwise working Solid view disappear.
- Dominant language
- TypeScript
- Stars
- 20k
- Forks
- 1.1k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 25
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vercel-labs/json-render
-
React Quick Start examples fail at runtime: Renderer must be wrapped in JSONUIProviderPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
vercel-labs/json-render#443 ·
Maintainers usually reply within 2 days
-
shadcn Grid/Stack are not responsive (fixed grid-cols-N, no min-w-0)Possibly taken @sushanshakya77 claimed this 67 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
vercel-labs/json-render#355 ·
Maintainers usually reply within 2 days
-
Array path helpers accept malformed RFC 6902 indexesPossibly taken @simonyang08 claimed this 106 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vercel-labs/json-render#326 ·
Maintainers usually reply within 2 days
-
Support zod 4.4+ — _zod.version.minor type check prevents upgradeMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vercel-labs/json-render#297 · 2 reactions ·
Maintainers usually reply within 2 days
-
feat: Generic `Spec` type supportPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
vercel-labs/json-render#275 · 1 reaction ·
Maintainers usually reply within 2 days
All issues in vercel-labs/json-render
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainers usually reply within 1 day
-
area: middleware enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
agent/quality testing
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
juspay/agent-distro#203 ·
Maintainers usually reply within 1 day