Advent of Svelte 2025 - Day 21: createContext #javascript #sveltejs #webdevelopment @SvelteSociety
Advent of Svelte 2025 - Day 21: createContext #javascript #sveltejs #webdevelopment  @SvelteSociety
Uploaded December 2025 | Updated September 2026, 3 weeks ago
Previously, sharing values through component trees required importing getContext and setContext, creating a Symbol to avoid string collisions, and exporting typed wrapper functions. With createContext, you simply call it with your type and get back a typed [get, set] tuple — no symbols, no strings, no boilerplate.

In this example, Santa's naughty-and-nice list app uses createContext to share a notification function across deeply nested components.

Read the docs: https://svelte.dev/docs/svelte/context#Type-safe-context
Advent of Svelte 2025 - Day 21: createContext #javascript #sveltejs #webdevelopmentUsing SvelteKit and MIT appinventor to inspire young girls for tech, Domenik ReitznerAdvent of Svelte 2025 - Day 16: optimistic updates #javascript #sveltejs #webdevelopmentTom Ballinger — Convex (sponsored talk)Remote Functions with Simon HolthausenThis Week in Svelte, Ep. 126 — ChangelogValibot vs Zod: Why Valibot Wins Today #coding #programming #javascriptTimothy Cohen Talks SampleKitSvelte London - February 2025Svelte Meets Vite: A Deep Dive with Matias Capeletto (patakdev)This Week in Svelte, Ep. 116 — Changelog, e18e.dev, NPM supply chain attackThis Week in Svelte, Ep. 69 — Changelog, socket activation, open source support
Svelte Society |

Advent of Svelte 2025 - Day 21: createContext #javascript #sveltejs #webdevelopment

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER