fix(devtools-solid): mounting devtools removes the rendered content
I maintainer di solito rispondono entro 2 giorni
@monsterlag ci sta già lavorando.
Dal 21/10/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 20k
- Fork
- 1.1k
- Merge medio
- 1g 18h
- PR unite (30g)
- 25
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vercel-labs/json-render
-
React Quick Start examples fail at runtime: Renderer must be wrapped in JSONUIProviderForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
vercel-labs/json-render#443 ·
I maintainer di solito rispondono entro 2 giorni
-
shadcn Grid/Stack are not responsive (fixed grid-cols-N, no min-w-0)Forse già presa @sushanshakya77 l’ha presa 67 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
vercel-labs/json-render#355 ·
I maintainer di solito rispondono entro 2 giorni
-
Array path helpers accept malformed RFC 6902 indexesForse già presa @simonyang08 l’ha presa 106 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vercel-labs/json-render#326 ·
I maintainer di solito rispondono entro 2 giorni
-
Support zod 4.4+ — _zod.version.minor type check prevents upgradeForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vercel-labs/json-render#297 · 2 reazioni ·
I maintainer di solito rispondono entro 2 giorni
-
feat: Generic `Spec` type supportForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
vercel-labs/json-render#275 · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di vercel-labs/json-render
Issue simili
-
bug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ClickHouse/clickhouse-js#1293 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
agent/quality testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 1 giorno
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
juspay/agent-distro#203 ·
I maintainer di solito rispondono entro 1 giorno