async reactivity in front-end frameworks

Svelte's async rewrite lets components await promises directly, eliminating load-function splits Svelte Society
TL;DW
  • Async Svelte allows await anywhere in components, eliminating need to split async logic across load functions and effects—keeping concerns colocated and improving code legibility.
  • Batch views system fixes async coordination bugs by tracking exact dependency versions per batch, preventing under-execution and over-execution of derived values during multiple concurrent updates.
  • Developers can now await library imports inline (e.g., `await import('shiki')`) with no ceremony—no lazy wrappers, caching boilerplate, or loading state management.
  • Settled() function resolves after entire update including async rendering completes, enabling correct scroll-to-new-message behavior without manual tick choreography.
  • Forking feature pre-renders next page off-screen on hover/touch without committing, reducing perceived latency by executing async work before user clicks.
  • In a world of AI-generated code, community and frameworks still matter because maintenance and coordination require shared values that LLMs cannot replicate.
  • Custom renderers now enable Svelte for terminal UIs, PDFs, WebGL, and beyond—expanding beyond web as a secondary goal.
  • Svelte DevTools now supercharged with inspector showing component source location, integrated into browser DevTools with Svelte icon indicator.
  • Async Svelte is production-ready after 20,000-line batch views PR landing this week, though still labeled experimental pending full stability declaration.
  • No performance penalty for async features in common single-batch case—views and records only used when multiple batches in flight.

Rich Harris introduces batch views and per-batch version tracking to prevent tearing when multiple async updates are in flight. Practical wins include on-demand code-splitting, eager intermediate results, post-update scroll positioning, and hover prefetching — all without moving data fetching outside components.