Loving the experimental remote functions in #SvelteKit. I’m actually really impressed with the DX, although the docs need a little attention (but this is wip). svelte.dev/docs/kit/rem...
Post
svelte.devRemote functions • Docs • SvelteRemote functions • Svelte documentation
Typing the `form()` function itself is a really nice touch, allowing the return expectation to be explicit - this works beautifully with @valibot.dev - but I stumbled across that in the declarations, not the docs.
Deriving the `result` from the imported function in the page containing the actual form element was also not obvious.
0 reposts0 likes
No replies yet.