Published On Aug 11, 2024
Learn how Svelte 5 reactivity works and when to derive values using `$derived` by learning how signals work under the hood.
🔴 Patreon: / joyofcode
𝕏 Twitter: / joyofcodedev
💬 Discord: / discord
🔥 Uses: https://www.joyofcode.xyz/uses
🔗 Svelte 5 Docs: https://svelte-5-preview.vercel.app/docs
🔗 Microtask: https://developer.mozilla.org/en-US/d...
🔖 Timestamps
0:00 Intro
0:35 Ad
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