Content pfp
Content
@
https://warpcast.com/~/channel/svelte
0 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Remote Functions are coming to SvelteKit. They're defined in `.remote.ts` files, come in four flavors (`query` / `form` / `command` / `prerender`) and support any validation library adhering to the Standard Schema protocol. Benefits: end-to-end type-safety across frontend and backend, progressively enhanced forms that work with JavaScript disabled, and a slew of modern async request caching and invalidation patterns (single-flight mutations, partial pre-rendering, optimistic updates) built right in.
4 replies
0 recast
5 reactions

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
GitHub discussion / YouTube coverage: https://github.com/sveltejs/kit/discussions/13897 https://youtube.com/watch?v=RViW1BtCxnk https://youtube.com/watch?v=Ijb8l9XEz2g&t=2557s
1 reply
0 recast
1 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
This is all building upon another huge effort to `async`-ify all the Svelte primitives, which you can read all about here: https://github.com/sveltejs/svelte/discussions/15845 https://farcaster.xyz/darrylyeo/0x1eb96524
1 reply
0 recast
1 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
For the React / Next.js devs – this is like all the best parts of tRPC, TanStack Query, React Server Functions and old Remix – but now built right into the full-stack framework. Not to mention all the client-side signal-based fine-grained reactivity goodies that every other framework has gotten to enjoy (and that you are sorely missing out on!).
0 reply
0 recast
2 reactions