Derived Signals in SolidJS

From the SolidJS cheat sheet · Signals · verified Jul 2026

Derived Signals

Create computed values by wrapping signal reads in a function — no special API needed.

typescript
// Quick Reference
const [count, setCount] = createSignal(0);
const doubled = () => count() * 2;
// doubled() auto-updates when count changes
💡 Derived signals are plain functions — no API needed, just read signals inside a function
⚡ They re-evaluate on every access, which is fine for cheap computations
📌 For expensive computations, use createMemo instead for caching
🟢 This pattern is unique to SolidJS — no useMemo or computed() wrappers needed
signalsderivedcomputed

More SolidJS tasks

Back to the full SolidJS cheat sheet