Content
@
https://warpcast.com/~/channel/svelte
0 reply
0 recast
0 reaction
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 đ ïž
@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
Rafi
@rafi
Hell has frozen. The community was quite contra server functions but I guess that's becoming a standard now
1 reply
0 recast
1 reaction
macmac
@jamesmac.eth
*magical*, not magic
0 reply
0 recast
1 reaction