What Svelte Promises
summary
Announces an asynchronous Svelte implementation that lets components directly await promises in markup, running dependent awaits in parallel and keeping UI updates synchronized; demo multiplies numbers via a remote multiplication API and uses package.pr.new with an experimental.async compiler flag to try it. Exposes settled for test waits, notes SSR currently yields pending state and needs work, and sketches remote functions (remote.js/ts queries and commands), per-function pre-rendering, and speculative updates.
AI-written summary · about
chapters (14)
- 0:00Introduction and setup
- 3:20Conference opening remarks
- 4:22Talk title and SvelteKit promises
- 8:57SvelteKit's async limitations
- 10:19React Suspense comparison
- 11:41Async Svelte demo begins
- 16:16How async Svelte works
- 22:36Why this complexity matters
- 22:56Current implementation and feedback
- 24:20Future SvelteKit improvements
- 25:42Remote functions concept
- 28:51Remote functions implementation
- 31:00Pre-rendering at function level
- 33:08Summary and future outlook
