Solid Ownership Pitfalls

Use when writing, reviewing or testing SolidJS 1.x code where state silently resets or leaks: components called as functions, Show or Match whose child keeps state when the value changes, the same component in several branches, hooks or signals created inside effects and memos, props.children read twice, store updates from server data, functions stored in a store, module-level signals under server rendering, boolean values on enumerated attributes (aria-expanded, draggable, spellcheck, contenteditable), innerHTML, custom-element props, and tests (render with an arrow, createRoot, renderHook, async queries, fake timers, portals).

techmefr Updated

File contents

techmefr/mentis commit 70f9353f85

Frequently asked questions

npx get-skill add techmefr/solid-ownership-pitfalls