Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

SvelteKit 3 puts heat on Next.js with radical approach to RPCs

Remote functions bring type-safe remote procedure calls right into Web page components

SvelteKit 3 puts heat on Next.js with radical approach to RPCs

SvelteKit 3.0, the latest experimental release candidate for the Svelte web development framework, introduces remote functions—a radical approach to remote procedure calls (RPCs) that could challenge the dominance of Next.js in the JavaScript ecosystem. Designed to be a lightweight alternative to React, SvelteKit offers streamlined server-side rendering, making it an attractive option for developers seeking performance and simplicity.

Remote functions in SvelteKit 3.0 enable individual components on a web page to update their data from the server without causing a full page refresh. This innovative feature simplifies data fetching by allowing components to directly import and call server-side functions, eliminating the need for additional routing or boilerplate code. This approach reduces overhead, improves performance, and maintains type safety, addressing a common pain point for developers.

In contrast to Next.js' Server Functions, which are primarily aimed at data mutation, SvelteKit's remote functions focus on data fetching and querying. This distinction sets SvelteKit apart, as it provides a more cohesive and seamless integration within the Svelte framework. The experimental release has garnered attention for its simplicity and effectiveness, potentially signaling a shift in how developers approach remote procedure calls in web development.

Written by urgent.news from The Register's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at theregister.com →

More in Tech

More from Wednesday 19 August →