Back to Calendar

Day 1 $inspect.trace()

Like Santa checking his list twice, $inspect.trace() helps you see exactly which pieces of reactive state caused your effects to re-run.

Added in Svelte 5.14, place this rune as the first statement inside any $effect or $derived to get detailed console output about what's naughty (triggering unnecessary updates) and what's nice (working as expected).

You can even pass an optional label to help identify your traces — because even Santa needs good logging when managing millions of deliveries!

Read the docs

Credits

Illustrations by Icons 8:

  • Santa Hat
  • Santa sleigh
  • Cookie
  • Heart
  • Santa face
  • Present
  • ID
  • Snowflake
  • Snow Globe
  • Question Mark
  • Fairy Lights
  • Piggy Bank
  • Globe
  • Present #2

Illustrations by Elisabet Guba:

  • Clock

Icons by Obra Icons

Challenges by Svelte Ambassadors:

  • Stanislav Khromov
  • Willow (GHOST)
  • Paolo Ricciuti

Santa Tracker Data by NORAD via Danielle Vass