← Back to list
🛠️

reactivity-diagnostics

Map a Solid 2.0 dev diagnostic code (STRICT_READ_UNTRACKED, REACTIVE_WRITE_IN_OWNED_SCOPE, LOADING_O
🛠️ Developer Tools skills By solidjs Version v1.0.7de4595 Added 2026-12-04 Updated 2026-12-04 Source ↗
7.4Overall rating
0Views
0Downloads
0Stars

Installation

🤖 Install via AI

Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.

Install the "reactivity-diagnostics" skill by following the instructions at https://skill123.me/install/reactivity-diagnostics?ref=detail
⌨️ Command line install

Run in your terminal — downloads and installs to ~/.claude/skills/.

curl -fsSL https://skill123.me/install/reactivity-diagnostics.sh?ref=detail | bash
📦 Download ZIP

Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.

⬇ Download v1.0.7de4595 · 10.6 MB
📊 Static rating
7.4/10
Trigger
7.5
Structure
4.0
Workflow
7.2
Content
7.5
Engineering
7.6
Security
10.0

Six-dimension rubric with reviewer rationale.

View scorecard ↓
🛡 Dynamic test
—

Not live-tested yet — this skill is rated on static analysis only.

About this skill

Map a Solid 2.0 dev diagnostic code (STRICT_READ_UNTRACKED, REACTIVE_WRITE_IN_OWNED_SCOPE, LOADING_ON_OUTSIDE_HOLD, HOT_SCOPE_*, ...) to its repair. Use when a Solid console warning, test failure or @solidjs/diagnostics artifact reports a [CODE].

Repairing Solid reactivity from diagnostic codes

Solid's dev builds emit structured diagnostics with stable codes. When you see

a code — in the console, in a test failure, or in a captured artifact from

@solidjs/diagnostics — this guide maps it to the repair. Each entry says

what the runtime observed and what to change. Do not suppress a diagnostic

you do not understand; every one of these is a real defect or a real cost.

Severity error codes indicate broken behavior; warn codes indicate code

that works but is structurally wrong or expensive.

Documentation

Map a Solid 2.0 dev diagnostic code (STRICT_READ_UNTRACKED, REACTIVE_WRITE_IN_OWNED_SCOPE, LOADING_ON_OUTSIDE_HOLD, HOT_SCOPE_*, ...) to its repair. Use when a Solid console warning, test failure or @solidjs/diagnostics artifact reports a [CODE].

Repairing Solid reactivity from diagnostic codes

Solid's dev builds emit structured diagnostics with stable codes. When you see

a code — in the console, in a test failure, or in a captured artifact from

@solidjs/diagnostics — this guide maps it to the repair. Each entry says

what the runtime observed and what to change. Do not suppress a diagnostic

you do not understand; every one of these is a real defect or a real cost.

Severity error codes indicate broken behavior; warn codes indicate code

that works but is structurally wrong or expensive.

Locating a finding

Every console report is one entry: the message, then an in line naming the

owners that enclose the subject, root first — component roots as <Name>,

computations by their name option or the effect/computed default:


[HOT_SCOPE_TIME] effect "effect" spent 12.4ms of compute inside one 1000ms window ...
  in <App> › <TodoList> › <TodoRow> › effect
  at src/components/TodoRow.tsx:18:3

Read it as the component tree down to the scope. In captured artifacts the

same chain is event.ownerPath (a string array). No in line means the

subject has no named owner — a top-level scope, or an unowned primitive,

which for the NO_OWNER_* codes is the finding itself. Naming your memos and

effects ({ name }) turns the trailing effect into something you can grep.

The at line is the source location (file:line:col, relative to the

project root) of the innermost located node — the binding, memo, effect,

signal or store the finding is about, else the JSX site of the nearest

enclosing component. It is written by the compiler's sourceNames

locations kind (on in a dev build; an opt-in for observe builds) and is

absent when the build did not write one. In a browser it prints as the dev

server's URL (at http://localhost:5173/src/components/TodoRow.tsx:18:3),

which Chrome and Firefox link to the Sources panel; on the server it is the

bare path. In captured artifacts the same string is event.loc.

In a browser, a report about a compiled JSX binding effect (an attribute,

class, style, or insert) also carries the element it writes as a second

console argument — hover to highlight it on the page, click to jump to it in

the Elements panel. That is the fastest way from a HOT_SCOPE_* warning to

"which row on screen." Why-chains (attribution.enable() from solid-js/attribution) print as

collapsed console groups: one headline per run, the causes inside.

View full documentation

The first report of each code ends with a two-line footer: for a human, the

code's page on the docs site (what the finding means and how to fix it); for

an agent, a pointer here — the installed copy (node_modules/solid-js/skills/...)

for tooling in the repo, and the same file on GitHub — anchored to the code's

section.

With attribution enabled, every root write also carries WHO performed it

(ChangeRecord.origin): the user event and element (`click on button#next

"Next →"), the effect or action it ran inside (effect "syncTitle"`,

action "save"), the async landing, or outside the reactive system

(timers, sockets, post-await code in an action — the documented escape).

Why-chains print it after the write; re-runs and holds expose the

interaction they trace back to (event.interaction, hold.interaction), so

a cost or a wait can be read as "what did the user do to pay for this."

Tracking mistakes (reads in the wrong place)

### STRICT_READ_UNTRACKED

A reactive value was read outside any tracking scope (e.g. destructured props

or a signal called in the component body). The read got the current value

once and will never update.

Move the read to where the value is used, inside a tracking scope: JSX, a

memo, an effect's compute function, or an API that takes an accessor.

Pick the repair by what the value is for:

  • Rendered: read it in JSX, <h1>{props.title}</h1>.
  • Derived: use a function, const total = () => props.price * props.qty,

or createMemo.

  • An input to async data: read it in the compute,

createMemo(() => fetchUser(props.id)).

  • Passed to a hook or primitive: pass an accessor,

useThing(() => props.id), not useThing(props.id).

  • The seed of local editable state: use a writable derived signal,

createSignal(() => props.initial), which resets when the source changes.

  • The initial value of a form control: defaultValue={props.initial} on the

element.

  • Needed by a side effect: createEffect(() => props.id, (id) => ...).
  • Needed when an event fires: read it inside the handler,

onClick={() => save(props.id)}.

  • An argument of a flow callback (<For>, <Show>): read the accessor in

JSX inside the callback, not at its top.

  • Config for an object built once (a client, an actor, a chart): build it in

a memo over the reads so it is rebuilt, or apply changes to it in an

effect.

  • A deliberate one-time snapshot that must never update: wrap the read in

untrack(() => props.value) to say so. This is the author deciding the

value never follows its source, not a way to clear the warning. It is

only safe when the value is never downstream of async. A value that comes

from async data can still be pending (the read throws) or mid-transition

(the snapshot is the old committed value). A component rarely knows where

its props come from, so a prop is seldom safe to snapshot.

Coding agents: do not wrap the read in untrack() to make the warning go

away. That keeps the bug (the value still never updates) and only hides the

report. Leave untrack to a person who has decided the value is fixed.

Writing a hook or library adapter: take () => T (or T | (() => T)) and

read it inside your own memos and effects. A hook that wraps its argument

reads in untrack to be "warning-free" freezes every caller's value; the

warning was pointing at that. Destructuring props (function C({ id })) is

the same read: use props.id.

When the context is "an event handler expression", the read is in the

expression an element's handler is bound from (onClick={selected() ? a : b},

onClick={makeHandler(id())}, or a component prop forwarded to an element

that the parent passed a reactive expression). Handlers are bound once and

are not reactive: move the read inside the handler function

(onClick={() => (selected() ? a() : b())}), and pass plain functions down

as handler props.

### PENDING_ASYNC_UNTRACKED_READ

Same shape as above but the value was a pending async computation, so there

is nothing to read yet at all. Async values must be read where tracking can

suspend and resume: JSX, a memo, or an effect's compute function.

### UNTRACKED_READ_AFTER_AWAIT

An async computation read a signal, memo, or store property for the first

time after an await. Only reads before the first await are tracked, so

the computation keeps its old result when that value changes. Read the value

before the first await (capture it in a local). Do not wrap the read in

untrack() to silence this: that makes the stale value deliberate without

anyone deciding it should be. Dev-only and V8-only (Chromium

browsers, Node, Deno, Bun); Firefox and Safari never report it, so treat it

as complementary to lint — it follows the read into helpers, .then

callbacks, and awaited utilities that lint cannot see. async function*

bodies are not covered. Warns once per computation per signal/memo and once

per store; a read inside an effect callback, cleanup, or action() body

that the continuation itself triggered is not blamed on it.

### PENDING_ASYNC_FORBIDDEN_SCOPE

A pending async value was read inside createTrackedEffect or onSettled,

which cannot suspend — it throws. Use createEffect (separate compute and

effect phases) which is async-aware: put the async read in the compute

function.

### CAUGHT_REACTIVE_READ

A computation wrapped a reactive read in try/catch as it would an await,

the read threw (not ready, or the source's error), the catch swallowed it,

and the computation completed with a substi

Score breakdown

Trigger
7.5
Trigger 7.5/10 — Authoritative, precise code-to-repair mapping with actionable fixes and a verification section. At 1185 lines with zero offload it is a monolithic reference that should be split into references/, hurting structure and skim-ability; documentation only, no scripts or egress.
Structure
4.0
Structure 4/10
Workflow
7.2
Workflow 7.2/10
Content
7.5
Content 7.5/10
Engineering
7.6
Engineering 7.6/10
Security
10.0
Security 10/10
Authoritative, precise code-to-repair mapping with actionable fixes and a verification section. At 1185 lines with zero offload it is a monolithic reference that should be split into references/, hurting structure and skim-ability; documentation only, no scripts or egress.

Assessment methodology

⏳
Assessment in progress
This skill has not been assessed yet — use with caution.

Version history

v1.0.7de4595 2026-12-04
10.6 MB

— Imported from GitHub solidjs/solid/packages/solid/skills/reactivity-diagnostics@7de4595