Learn how Svelte 5 reactivity works and when to derive values using `$derived` by learning how signals work under the hood.
π΄ Patreon: https://www.patreon.com/joyofcode
π Twitter: https://twitter.com/joyofcodedev
π¬ Discord: https://discord.com/invite/k6ZpwAKwwZ
π₯ Uses: https://www.joyofcode.xyz/uses
π Svelte 5 Docs: https://svelte-5-preview.vercel.app/docs
π Microtask: https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask
π Timestamps
0:00 Intro
0:35 Sponsor
0:51 How Does Svelte Reactivity Work?
4:27 Using The Derived Rune
10:39 Don't Use Effects To Update State
14:36 You Don't Have To Use $derived
17:57 How Do Signals Work?
21:17 Updating State With Functions And Writable Deriveds
25:15 Using Proxied State To Update Values
31:06 Don't Use $derived For Side-Effects
37:04 Outro
#joyofcode #sveltekit #svelte